pm4py.algo.conformance.footprints.util package#

PM4Py – A Process Mining Library for Python

Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.

Website: https://processintelligence.solutions Contact: info@processintelligence.solutions

Submodules#

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

PM4Py – A Process Mining Library for Python

Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.

Website: https://processintelligence.solutions Contact: info@processintelligence.solutions

class pm4py.algo.conformance.footprints.util.evaluation.Outputs(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

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#

PM4Py – A Process Mining Library for Python

Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.

Website: https://processintelligence.solutions Contact: info@processintelligence.solutions

class pm4py.algo.conformance.footprints.util.tree_visualization.Outputs(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

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