fastnode2vec icon indicating copy to clipboard operation
fastnode2vec copied to clipboard

How to obtain vectors all of the nodes?

Open myrainbowandsky opened this issue 2 years ago • 1 comments

The code is graph = Graph(_lst, directed=True, weighted=True)

model = Node2Vec(_graph, dim=300, walk_length=100, context=10, p=2.0, q=0.5, workers=-1)

model.train(epochs=epochs)

I have 10,000 nodes. When I check:

model.index_to_key, there are only 502 nodes. Why is that? How to set parameters so I can get the vectors of all nodes?

myrainbowandsky avatar Apr 11 '22 04:04 myrainbowandsky

What makes you think you have 10k nodes?

louisabraham avatar Apr 11 '22 05:04 louisabraham

Closing this now.

louisabraham avatar Jun 27 '23 09:06 louisabraham