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

Bases: Enum

An enumeration.

ALIGNMENT_BASED = <module 'pm4py.algo.evaluation.replay_fitness.variants.alignment_based' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\evaluation\\replay_fitness\\variants\\alignment_based.py'>#
TOKEN_BASED = <module 'pm4py.algo.evaluation.replay_fitness.variants.token_replay' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\evaluation\\replay_fitness\\variants\\token_replay.py'>#
class pm4py.algo.evaluation.replay_fitness.algorithm.Parameters(value)[source]#

Bases: Enum

An enumeration.

ALIGN_VARIANT = 'align_variant'#
pm4py.algo.evaluation.replay_fitness.algorithm.apply(log: Union[EventLog, DataFrame], petri_net: PetriNet, initial_marking: Marking, final_marking: Marking, parameters: Optional[Dict[Union[str, Parameters], Any]] = None, variant=None, align_variant=None) Dict[str, Any][source]#

Apply fitness evaluation starting from an event log and a marked Petri net, by using one of the replay techniques provided by PM4Py

Parameters#

log

Trace log object

petri_net

Petri net

initial_marking

Initial marking

final_marking

Final marking

parameters

Parameters related to the replay algorithm

variant
Chosen variant:
  • Variants.ALIGNMENT_BASED

  • Variants.TOKEN_BASED

align_variant

Alignments variant (for alignment-based replay)

Returns#

fitness_eval

Fitness evaluation

pm4py.algo.evaluation.replay_fitness.algorithm.evaluate(results, parameters=None, variant=Variants.TOKEN_BASED)[source]#

Evaluate replay results when the replay algorithm has already been applied

Parameters#

results

Results of the replay algorithm

parameters

Possible parameters passed to the evaluation

variant

Indicates which evaluator is called

Returns#

fitness_eval

Fitness evaluation