Skip to content

To Time sequence strategy

StrategyNextValueInNode

Stores strategy to chose next value in the selected node.

Attributes:

  • skip: tells us how many values do we skip before appending next one

StrategyNextValueInNodeRandom

Bases: StrategyNextValueInNode

Chooses next value in selected node randomly.

StrategyNextValueInNodeRandomForSlidingWindow

Bases: StrategyNextValueInNode

Chooses next value in selected node randomly in graph made with sliding window mechanism.

StrategyNextValueInNodeRoundRobin

Bases: StrategyNextValueInNode

Chooses next value in selected node sequentially, in the same order as they were saved.

StrategyNextValueInNodeRoundRobinForSlidingWindow

Bases: StrategyNextValueInNode

Chooses next value in selected node sequentially for graph made with sliding window mechanism, in the same order as they were saved.

StrategySelectNextNode

Stores strategy to chose next node from the neighbors of the previous node.

Attributes:

  • change_graphs: tells how long we walk through one graph, before switching to next one
  • graph: networkx.Graph object

StrategySelectNextNodeRandomlyFromNeighboursAcrossGraphs

Bases: StrategySelectNextNode

Walks through all graphs in a multivariate graph and chooses next node randomly.

next_node(i, graph_index, nodes, switch, node)

From neighbors of the previous node randomly chooses next node.

StrategySelectNextNodeRandomlyFromNeighboursFromFirstGraph

Bases: StrategySelectNextNode

Walks through first graph and chooses next node randomly.

next_node(i, graph_index, nodes, switch, node)

From neighbors of the previous node randomly chooses next node.