pm4py.algo.simulation.playout.petri_net.variants package

Submodules

pm4py.algo.simulation.playout.petri_net.variants.basic_playout module

class pm4py.algo.simulation.playout.petri_net.variants.basic_playout.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
CASE_ID_KEY = 'case_id_glue'
MAX_TRACE_LENGTH = 'maxTraceLength'
NO_TRACES = 'noTraces'
RETURN_VISITED_ELEMENTS = 'return_visited_elements'
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'
pm4py.algo.simulation.playout.petri_net.variants.basic_playout.apply(net, initial_marking, final_marking=None, parameters=None)[source]

Do the playout of a Petrinet generating a log

Parameters
  • net – Petri net to play-out

  • initial_marking – Initial marking of the Petri net

  • final_marking – If provided, the final marking of the Petri net

  • parameters

    Parameters of the algorithm:

    Parameters.NO_TRACES -> Number of traces of the log to generate Parameters.MAX_TRACE_LENGTH -> Maximum trace length

pm4py.algo.simulation.playout.petri_net.variants.basic_playout.apply_playout(net, initial_marking, no_traces=100, max_trace_length=100, case_id_key='concept:name', activity_key='concept:name', timestamp_key='time:timestamp', final_marking=None, return_visited_elements=False)[source]

Do the playout of a Petrinet generating a log

Parameters
  • net – Petri net to play-out

  • initial_marking – Initial marking of the Petri net

  • no_traces – Number of traces to generate

  • max_trace_length – Maximum number of events per trace (do break)

  • case_id_key – Trace attribute that is the case ID

  • activity_key – Event attribute that corresponds to the activity

  • timestamp_key – Event attribute that corresponds to the timestamp

  • final_marking – If provided, the final marking of the Petri net

pm4py.algo.simulation.playout.petri_net.variants.extensive module

class pm4py.algo.simulation.playout.petri_net.variants.extensive.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
CASE_ID_KEY = 'case_id_glue'
MAX_MARKING_OCC = 'max_marking_occ'
MAX_TRACE_LENGTH = 'maxTraceLength'
RETURN_ELEMENTS = 'return_elements'
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'
pm4py.algo.simulation.playout.petri_net.variants.extensive.apply(net, initial_marking, final_marking=None, parameters=None)[source]

Do the playout of a Petrinet generating a log (extensive search; stop at the maximum trace length specified

Parameters
  • net – Petri net to play-out

  • initial_marking – Initial marking of the Petri net

  • final_marking – If provided, the final marking of the Petri net

  • parameters

    Parameters of the algorithm:

    Parameters.MAX_TRACE_LENGTH -> Maximum trace length

pm4py.algo.simulation.playout.petri_net.variants.stochastic_playout module

class pm4py.algo.simulation.playout.petri_net.variants.stochastic_playout.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
CASE_ID_KEY = 'case_id_glue'
LOG = 'log'
MAX_TRACE_LENGTH = 'maxTraceLength'
NO_TRACES = 'noTraces'
RETURN_VISITED_ELEMENTS = 'return_visited_elements'
STOCHASTIC_MAP = 'stochastic_map'
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'
pm4py.algo.simulation.playout.petri_net.variants.stochastic_playout.apply(net, initial_marking, final_marking=None, parameters=None)[source]

Do the playout of a Petrinet generating a log

Parameters
  • net – Petri net to play-out

  • initial_marking – Initial marking of the Petri net

  • final_marking – If provided, the final marking of the Petri net

  • parameters

    Parameters of the algorithm:

    Parameters.NO_TRACES -> Number of traces of the log to generate Parameters.MAX_TRACE_LENGTH -> Maximum trace length

pm4py.algo.simulation.playout.petri_net.variants.stochastic_playout.apply_playout(net, initial_marking, no_traces=100, max_trace_length=100, case_id_key='concept:name', activity_key='concept:name', timestamp_key='time:timestamp', final_marking=None, smap=None, log=None, return_visited_elements=False)[source]

Do the playout of a Petrinet generating a log

Parameters
  • net – Petri net to play-out

  • initial_marking – Initial marking of the Petri net

  • no_traces – Number of traces to generate

  • max_trace_length – Maximum number of events per trace (do break)

  • case_id_key – Trace attribute that is the case ID

  • activity_key – Event attribute that corresponds to the activity

  • timestamp_key – Event attribute that corresponds to the timestamp

  • final_marking – If provided, the final marking of the Petri net

  • smap – Stochastic map

  • log – Log

Module contents