pm4py.algo.evaluation 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/>.

Subpackages#

Submodules#

pm4py.algo.evaluation.algorithm 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.evaluation.algorithm.Parameters(value)[source]#

Bases: Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'#
PARAM_FITNESS_WEIGHT = 'fitness_weight'#
PARAM_PRECISION_WEIGHT = 'precision_weight'#
PARAM_SIMPLICITY_WEIGHT = 'simplicity_weight'#
PARAM_GENERALIZATION_WEIGHT = 'generalization_weight'#
pm4py.algo.evaluation.algorithm.apply(log: Union[EventLog, DataFrame], net: PetriNet, initial_marking: Marking, final_marking: Marking, parameters: Optional[Dict[Union[str, Parameters], Any]] = None) Dict[str, float][source]#

Calculates all metrics based on token-based replay and returns a unified dictionary

Parameters#

log

Log

net

Petri net

initial_marking

Initial marking

final_marking

Final marking

parameters

Parameters

Returns#

dictionary

Dictionary containing fitness, precision, generalization and simplicity; along with the average weight of these metrics