The DeepWalk model from the `”DeepWalk: Online Learning of Social Representations”
DeepWalk(dimension, walk_length, walk_num, window_size, worker, iteration)¶
The DeepWalk model from the “DeepWalk: Online Learning of Social Representations” paper
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.
Add model-specific arguments to the parser.
Build a new model instance.
_walk(self, start_node, walk_length)¶
_simulate_walks(self, walk_length, num_walks)¶