-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Train vs Inference methods #107
Comments
No, I wouldn't go this way Training is okay, but for testing you do not need So just use from gensim.models import KeyedVectors
space = KeyedVectors.load_word2vec_format(EMBEDDING_FILENAME) then too look up vectors, see the gensim docs |
Thanks for the reference, following your suggestion is this a valid approach?
|
Last error:
|
Which line failes? the |
Yes is the the keyed vector odd: this generates an error: could not convert string to float
|
I can see why this happens, because these are edges embedding If you want to use edges embedding why not do it this way node_embeddings = KeyedVectors.load_word2vec_format(NODE_WORD_FILENAME)
edges_embs = HadamardEmbedder(keyed_vectors=node_embeddings)
# Get all edges in a separate KeyedVectors instance - use with caution could be huge for big networks
edges_kv = edges_embs.as_keyed_vectors() |
Hello there,
what is the correct way to separate training from inference?
Is this correct?
I run the training first, save the embeddings.
Then I load a new graph and do the most similar?
The text was updated successfully, but these errors were encountered: