pm4py.evaluation.precision package

Submodules

pm4py.evaluation.precision.evaluator module

class pm4py.evaluation.precision.evaluator.Variants(value)[source]

Bases: enum.Enum

An enumeration.

ALIGN_ETCONFORMANCE = <module 'pm4py.evaluation.precision.variants.align_etconformance' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\evaluation\\precision\\variants\\align_etconformance.py'>
ETCONFORMANCE_TOKEN = <module 'pm4py.evaluation.precision.variants.etconformance_token' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\evaluation\\precision\\variants\\etconformance_token.py'>
pm4py.evaluation.precision.evaluator.apply(log, net, marking, final_marking, parameters=None, variant=None)[source]

Method to apply ET Conformance

Parameters
  • log – Trace log

  • net – Petri net

  • marking – Initial marking

  • final_marking – Final marking

  • parameters

    Parameters of the algorithm, including:

    pm4py.util.constants.PARAMETER_CONSTANT_ACTIVITY_KEY -> Activity key

  • variant

    Variant of the algorithm that should be applied:
    • Variants.ETCONFORMANCE_TOKEN

    • Variants.ALIGN_ETCONFORMANCE

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

pm4py.evaluation.precision.parameters module

class pm4py.evaluation.precision.parameters.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
CLEANING_TOKEN_FLOOD = 'cleaning_token_flood'
SHOW_PROGRESS_BAR = 'show_progress_bar'
TOKEN_REPLAY_VARIANT = 'token_replay_variant'

pm4py.evaluation.precision.utils module

pm4py.evaluation.precision.utils.form_fake_log(prefixes_keys, activity_key='concept:name')[source]

Form fake log for replay (putting each prefix as separate trace to align)

Parameters
  • prefixes_keys – Keys of the prefixes (to form a log with a given order)

  • activity_key – Activity key (must be provided if different from concept:name)

pm4py.evaluation.precision.utils.get_log_prefixes(log, activity_key='concept:name')[source]

Get log prefixes

Parameters
  • log – Trace log

  • activity_key – Activity key (must be provided if different from concept:name)

Module contents