pm4py.algo.comparison.petrinet.element_usage_comparison module#
- pm4py.algo.comparison.petrinet.element_usage_comparison.give_color_to_direction_dynamic(dir)[source]#
Assigns a color to the direction (dynamic-defined colors)
- Parameters:
dir – Direction
- Returns:
Color
- Return type:
col
- pm4py.algo.comparison.petrinet.element_usage_comparison.give_color_to_direction_static(dir)[source]#
Assigns a color to the direction (static-defined colors)
- Parameters:
dir – Direction
- Returns:
Color
- Return type:
col
- pm4py.algo.comparison.petrinet.element_usage_comparison.compare_element_usage_two_logs(net: PetriNet, im: Marking, fm: Marking, log1: EventLog | DataFrame, log2: EventLog | DataFrame, parameters: Dict[Any, Any] | None = None) Dict[Any, Any][source]#
Returns some statistics (also visual) about the comparison of the usage of the elements in two logs given an accepting Petri net
- Parameters:
net – Petri net
im – Initial marking
fm – Final marking
log1 – First log
log2 – Second log
parameters – Parameters of the algorithm (to be passed to the token-based replay)
- Returns:
Statistics about the usage of places, transitions and arcs in the net
- Return type:
aggregated_statistics