Skip to content
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

Node2Vec on Bipartite Graph outputs similar nodes from both node set #34

Closed
AmalNammouchi opened this issue Feb 18, 2020 · 2 comments
Closed

Comments

@AmalNammouchi
Copy link

1)I tried to apply Node2Vec on Bipartite graph, but I want the input to be a node from the node Set A and the output to be nodes from the node set B. I tried to change the parameters (walk_length and num_walks) but I always get output nodes from both the node set og the graph.
How can I do that while letting the model learn from all the graph?
2)How can I apply node2vec on dynamic Graphs?

@eliorc
Copy link
Owner

eliorc commented Feb 22, 2020

  1. Outputs of node2vec are for all nodes in the graph, you can't filter out nodes, unless you make the walk probability to/from them to zero, which is equivalent to just removing them from the graph.
  2. Much like word2vec only learns embeddings for words it has seen and treats unmet words as OOV, you can try to take the same approach

@eliorc eliorc closed this as completed Feb 23, 2020
@AmalNammouchi
Copy link
Author

when I add a node to my graph which has no link on it (it s like a new node that still has no link), and then apply node2vec to my graph and check the most similar nodes to my node, it outputs some results, but I am not sure according to what exactly it outputed that result, according to what those outputed nodes are similar to my unconnected node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants