pm4py.algo.simulation.playout.petri_net.algorithm module#

class pm4py.algo.simulation.playout.petri_net.algorithm.Variants(*values)[source]#

Bases: Enum

BASIC_PLAYOUT = <module 'pm4py.algo.simulation.playout.petri_net.variants.basic_playout' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/simulation/playout/petri_net/variants/basic_playout.py'>#
STOCHASTIC_PLAYOUT = <module 'pm4py.algo.simulation.playout.petri_net.variants.stochastic_playout' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/simulation/playout/petri_net/variants/stochastic_playout.py'>#
EXTENSIVE = <module 'pm4py.algo.simulation.playout.petri_net.variants.extensive' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/simulation/playout/petri_net/variants/extensive.py'>#
pm4py.algo.simulation.playout.petri_net.algorithm.apply(net: PetriNet, initial_marking: Marking, final_marking: Marking = None, parameters: Dict[Any, Any] | None = None, variant=Variants.BASIC_PLAYOUT) EventLog[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) Final marking of the Petri net

  • parameters – Parameters of the algorithm

  • variant

    Variant of the algorithm to use:
    • Variants.BASIC_PLAYOUT: selects random traces from the model, without looking at the

    frequency of the transitions - Variants.STOCHASTIC_PLAYOUT: selects random traces from the model, looking at the stochastic frequency of the transitions. Requires the provision of the stochastic map or the log. - Variants.EXTENSIVE: gets all the traces from the model. can be expensive