models.emb.node2vec
¶
Module Contents¶
Classes¶
The node2vec model from the `”node2vec: Scalable feature learning for networks” |
-
class
models.emb.node2vec.
Node2vec
(dimension, walk_length, walk_num, window_size, worker, iteration, p, q)[source]¶ Bases:
models.BaseModel
The node2vec model from the “node2vec: Scalable feature learning for networks” paper
- Args:
hidden_size (int) : The dimension of node representation. walk_length (int) : The walk length. walk_num (int) : The number of walks to sample for each node. window_size (int) : The actual context size which is considered in language model. worker (int) : The number of workers for word2vec. iteration (int) : The number of training iteration in word2vec. p (float) : Parameter in node2vec. q (float) : Parameter in node2vec.