pm4py.algo.conformance.footprints.util package

Submodules

pm4py.algo.conformance.footprints.util.evaluation module

class pm4py.algo.conformance.footprints.util.evaluation.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'
pm4py.algo.conformance.footprints.util.evaluation.flatten_conf(conf: List[Dict[str, Any]]) → Dict[str, Any][source]

Flattens the trace-based conformance checking results (obtained using footprints) to the conformance checking results on the overall log

Parameters

conf – Trace-based conformance checking results

Returns

Overall log conformance checking results

Return type

log_conf

pm4py.algo.conformance.footprints.util.evaluation.flatten_fp(fp: List[Dict[str, Any]]) → Dict[str, Any][source]

Flattens the trace-based footprints to the footprints of the overall log

Parameters

fp – Trace-based footprints

Returns

Overall log footprints

Return type

log_fp

pm4py.algo.conformance.footprints.util.evaluation.fp_fitness(fp_log, fp_model, conf_results, parameters=None)[source]

Calculates the footprints fitness provided the footprints of the log, and the result of footprints conformance (applied to the entire log)

Parameters
  • fp_log – Footprints of the log

  • fp_model – Footprints of the model

  • conf_results – Footprints conformance (applied to the entire log)

  • parameters – Parameters of the algorithm

Returns

Fitness value (between 0.0 and 1.0)

Return type

fitness

pm4py.algo.conformance.footprints.util.evaluation.fp_precision(fp_log, fp_model, parameters=None)[source]

Calculates the footprints based precision provided the two footprints of the log and the model.

Parameters
  • fp_log – Footprints of the log

  • fp_model – Footprints of the model

  • parameters – Parameters of the algorithm

Returns

Precision value (between 0 and 1)

Return type

precision

pm4py.algo.conformance.footprints.util.tree_visualization module

class pm4py.algo.conformance.footprints.util.tree_visualization.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'
pm4py.algo.conformance.footprints.util.tree_visualization.apply(tree, conf_results, parameters=None)[source]

Projects conformance results on top of the process tree

Parameters
  • tree – Process tree

  • conf_results – Conformance results (footprints on the entire log vs entire model)

  • parameters – Parameters of the algorithm

Returns

Color map to be provided to the visualization

Return type

color_map

Module contents