You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node2vec = Node2Vec(graph, dimensions=64, walk_length=30, num_walks=200, workers=4) # Use temp_folder for big graphs
21
21
22
22
# Embed nodes
23
-
model = node2vec.fit(window=10, min_count=1, batch_words=4) # Any keywords acceptable by gensim.Word2Vec can be passed, `diemnsions` and `workers` are automatically passed (from the Node2Vec constructor)
23
+
model = node2vec.fit(window=10, min_count=1, batch_words=4) # Any keywords acceptable by gensim.Word2Vec can be passed, `dimensions` and `workers` are automatically passed (from the Node2Vec constructor)
24
24
25
25
# Look for most similar nodes
26
26
model.wv.most_similar('2') # Output node names are always strings
Use these keys exactly. If not set, will use the global ones which were passed on the object initialization`
74
74
10.`quiet`: Boolean controlling the verbosity. (default: False)
75
75
11.`temp_folder`: String path pointing to folder to save a shared memory copy of the graph - Supply when working on graphs that are too big to fit in memory during algorithm execution.
76
+
12.`seed`: Seed for the random number generator (default: None). Deterministic results can be obtained if seed is set and `workers=1`.
76
77
77
78
-`Node2Vec.fit` method:
78
79
Accepts any key word argument acceptable by gensim.Word2Vec
0 commit comments