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 - EventsNodeor- MergeNode.
- parentslist of Nodes
- If - nodeis- EventsNode- only 1 parent must be defined.
- If - nodeis- MergeNode- at least 2 parents have to be defined.
 
 
- Returns:
- None
 
 - See also - PreprocessingGraph.combine
- Start PreprocessingGraph recalculation. 
- EventsNode
- Regular nodes of a preprocessing graph. 
- MergeNode
- Merge nodes of a preprocessing graph. 
 
 - combine(node)[source]#
- Run calculations from the - SourceNodeup to the specified- node.- Parameters:
- nodeNode
- Instance of either - SourceNode,- EventsNodeor- MergeNode.
 
- Returns:
- EventstreamType
- Eventstreamwith all changes applied by data processors.
 
 
 - display(width=960, height=600)[source]#
- Show constructed - PreprocessingGraph.- Parameters:
- widthint, default 960
- Width of plot in pixels. 
- heightint, default 600
- Height of plot in pixels. 
 
- Returns:
- Rendered preprocessing graph.
 
 
 - export_to_file(filename)[source]#
- Export constructed - PreprocessingGraphto a json file.- Parameters:
- filenamestr
- Path to the json file. 
 
- Returns:
- None
 
 
 - get_parents(node)[source]#
- Show parents of the specified - node.- Parameters:
- nodeNode
- Instance of one of the classes SourceNode, EventsNode or MergeNode. 
 
- Returns:
- list of Nodes
 
 
 - import_from_file(filename)[source]#
- Import constructed - PreprocessingGraphfrom a json file.- Parameters:
- filenamestr
- Path to the json file. 
 
- Returns:
- None
 
 
 - property combine_result#
- Keep and get the last combining result from preprocessing graph GUI. - Returns:
- EventstreamType or None
- Preprocessed eventstream.