pm4py.algo.reduction.process_tree.variants package

Submodules

pm4py.algo.reduction.process_tree.variants.tree_tr_based module

class pm4py.algo.reduction.process_tree.variants.tree_tr_based.Outputs(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITIES = 'activities'
ACTIVITIES_ALWAYS_HAPPENING = 'activities_always_happening'
DFG = 'dfg'
END_ACTIVITIES = 'end_activities'
MIN_TRACE_LENGTH = 'min_trace_length'
PARALLEL = 'parallel'
SEQUENCE = 'sequence'
SKIPPABLE = 'skippable'
START_ACTIVITIES = 'start_activities'
TRACE = 'trace'
class pm4py.algo.reduction.process_tree.variants.tree_tr_based.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
pm4py.algo.reduction.process_tree.variants.tree_tr_based.apply(tree: pm4py.objects.process_tree.obj.ProcessTree, trace: pm4py.objects.log.obj.Trace, parameters: Optional[Dict[Any, Any]] = None, **kwargs)pm4py.objects.process_tree.obj.ProcessTree[source]

Reduce a process tree replacing the skippable elements that have empty intersection with the trace.

Parameters
  • tree – Process tree

  • trace – Trace of an event log

  • parameters – Parameters of the algorithm, possible values: Parameters.ACTIVITY_KEY

Returns

Reduced process tree

Return type

tree

pm4py.algo.reduction.process_tree.variants.tree_tr_based.reduce(bottomup_nodes: List[pm4py.objects.process_tree.obj.ProcessTree], fps: Dict[str, Any], activities: Set[str])pm4py.objects.process_tree.obj.ProcessTree[source]

Reduce a process tree replacing the skippable elements that have empty intersection with the trace.

Parameters
  • bottomup_nodes – List of nodes of the process tree (that are process trees by themselves) in a bottomup order

  • fps – Footprints of the process tree

  • activities – Set of activities in the trace

Returns

Reduced process tree

Return type

tree

Module contents