RandomWalkModel

class mowl.base_models.RandomWalkModel(*args, **kwargs)[source]

Bases: GraphModel

Base class for graph embedding methods that use random walks.

Attributes Summary

walker

Returns the walker object of the random walk model.

Methods Summary

set_walker(walker)

Sets the walker object of the random walk model.

train()

Abstract method for training the model.

Attributes Documentation

walker

Returns the walker object of the random walk model.

Return type:

WalkingModel object

Methods Documentation

set_walker(walker)[source]

Sets the walker object of the random walk model.

Parameters:

walker (WalkingModel object) – the walker to be set

train()[source]

Abstract method for training the model. This method must be implemented in children classes