pm4py.algo.conformance.footprints.util package#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

Submodules#

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

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.algo.conformance.footprints.util.evaluation.Outputs(value)[source]#

Bases: Enum

An enumeration.

DFG = 'dfg'#
SEQUENCE = 'sequence'#
PARALLEL = 'parallel'#
START_ACTIVITIES = 'start_activities'#
END_ACTIVITIES = 'end_activities'#
ACTIVITIES = 'activities'#
SKIPPABLE = 'skippable'#
ACTIVITIES_ALWAYS_HAPPENING = 'activities_always_happening'#
MIN_TRACE_LENGTH = 'min_trace_length'#
TRACE = 'trace'#
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

Fitness value (between 0.0 and 1.0)

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

Precision value (between 0 and 1)

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#

log_fp

Overall log footprints

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#

log_conf

Overall log conformance checking results

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

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.algo.conformance.footprints.util.tree_visualization.Outputs(value)[source]#

Bases: Enum

An enumeration.

DFG = 'dfg'#
SEQUENCE = 'sequence'#
PARALLEL = 'parallel'#
START_ACTIVITIES = 'start_activities'#
END_ACTIVITIES = 'end_activities'#
ACTIVITIES = 'activities'#
SKIPPABLE = 'skippable'#
ACTIVITIES_ALWAYS_HAPPENING = 'activities_always_happening'#
MIN_TRACE_LENGTH = 'min_trace_length'#
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

Color map to be provided to the visualization