Preprocessing Graph#
Class#
- class retentioneering.preprocessing_graph.preprocessing_graph.PreprocessingGraph(source_stream)[source]#
Collection of methods for preprocessing graph construction and calculation.
- Parameters:
- source_streamEventstreamType
Source eventstream.
Notes
See Preprocessing user guide for the details.
- add_node(node, parents)[source]#
Add node to
PreprocessingGraphinstance.- Parameters:
- nodeNode
An instance of either
EventsNodeorMergeNode.- parentslist of Nodes
If
nodeisEventsNode- only 1 parent must be defined.If
nodeisMergeNode- at least 2 parents have to be defined.
- Returns:
- None
See also
PreprocessingGraph.combineStart PreprocessingGraph recalculation.
EventsNodeRegular nodes of a preprocessing graph.
MergeNodeMerge nodes of a preprocessing graph.
- combine(node)[source]#
Run calculations from the
SourceNodeup to the specifiednode.- Parameters:
- nodeNode
Instance of either
SourceNode,EventsNodeorMergeNode.
- Returns:
- EventstreamType
Eventstreamwith all changes applied by data processors.