pm4py.simulation.playout.variants package¶
Submodules¶
pm4py.simulation.playout.variants.basic_playout module¶
This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.
-
class
pm4py.simulation.playout.variants.basic_playout.Parameters[source]¶ Bases:
enum.EnumAn enumeration.
-
ACTIVITY_KEY= 'pm4py:param:activity_key'¶
-
CASE_ID_KEY= 'pm4py:param:case_id_key'¶
-
MAX_TRACE_LENGTH= 'maxTraceLength'¶
-
NO_TRACES= 'noTraces'¶
-
RETURN_VISITED_ELEMENTS= 'return_visited_elements'¶
-
TIMESTAMP_KEY= 'pm4py:param:timestamp_key'¶
-
-
pm4py.simulation.playout.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.simulation.playout.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.simulation.playout.variants.extensive module¶
This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.
-
class
pm4py.simulation.playout.variants.extensive.Parameters[source]¶ Bases:
enum.EnumAn enumeration.
-
ACTIVITY_KEY= 'pm4py:param:activity_key'¶
-
CASE_ID_KEY= 'pm4py:param:case_id_key'¶
-
MAX_MARKING_OCC= 'max_marking_occ'¶
-
MAX_TRACE_LENGTH= 'maxTraceLength'¶
-
RETURN_ELEMENTS= 'return_elements'¶
-
TIMESTAMP_KEY= 'pm4py:param:timestamp_key'¶
-
-
pm4py.simulation.playout.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.simulation.playout.variants.stochastic_playout module¶
This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.
-
class
pm4py.simulation.playout.variants.stochastic_playout.Parameters[source]¶ Bases:
enum.EnumAn enumeration.
-
ACTIVITY_KEY= 'pm4py:param:activity_key'¶
-
CASE_ID_KEY= 'pm4py:param:case_id_key'¶
-
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.simulation.playout.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.simulation.playout.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¶
This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).
PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.