pm4py.evaluation package

Subpackages

Submodules

pm4py.evaluation.evaluator module

class pm4py.evaluation.evaluator.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
PARAM_FITNESS_WEIGHT = 'fitness_weight'
PARAM_GENERALIZATION_WEIGHT = 'generalization_weight'
PARAM_PRECISION_WEIGHT = 'precision_weight'
PARAM_SIMPLICITY_WEIGHT = 'simplicity_weight'
pm4py.evaluation.evaluator.apply(log, net, initial_marking, final_marking, parameters=None)[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 containing fitness, precision, generalization and simplicity; along with the average weight of these metrics

Return type

dictionary

Deprecated since version 2.2.5: This will be removed in 3.0. Use the pm4py.algo.evaluation.evaluator class

Module contents