pm4py.algo.conformance.tokenreplay package

Submodules

pm4py.algo.conformance.tokenreplay.algorithm module

class pm4py.algo.conformance.tokenreplay.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

BACKWARDS = <module 'pm4py.algo.conformance.tokenreplay.variants.backwards' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\conformance\\tokenreplay\\variants\\backwards.py'>
TOKEN_REPLAY = <module 'pm4py.algo.conformance.tokenreplay.variants.token_replay' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\conformance\\tokenreplay\\variants\\token_replay.py'>
pm4py.algo.conformance.tokenreplay.algorithm.apply(log, net, initial_marking, final_marking, parameters=None, variant=<Variants.TOKEN_REPLAY: <module 'pm4py.algo.conformance.tokenreplay.variants.token_replay' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\conformance\\tokenreplay\\variants\\token_replay.py'>>)[source]

Method to apply token-based replay

Parameters
  • log – Log

  • net – Petri net

  • initial_marking – Initial marking

  • final_marking – Final marking

  • parameters

    Parameters of the algorithm, including:

    Parameters.ACTIVITY_KEY -> Activity key

  • variant

    Variant of the algorithm to use:
    • Variants.TOKEN_REPLAY

    • Variants.BACKWARDS

pm4py.algo.conformance.tokenreplay.algorithm.get_diagnostics_dataframe(log, tbr_output, variant=<Variants.TOKEN_REPLAY: <module 'pm4py.algo.conformance.tokenreplay.variants.token_replay' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\conformance\\tokenreplay\\variants\\token_replay.py'>>, parameters=None)[source]

Gets the results of token-based replay in a dataframe

Parameters
  • log – Event log

  • tbr_output – Output of the token-based replay technique

  • variant

    Variant of the algorithm to use:
    • Variants.TOKEN_REPLAY

    • Variants.BACKWARDS

Returns

Diagnostics dataframe

Return type

dataframe

Module contents