pm4py.algo.discovery.ocel.ocpn.variants.classic module#
PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
- class pm4py.algo.discovery.ocel.ocpn.variants.classic.Parameters(*values)[source]#
Bases:
Enum- EVENT_ACTIVITY = 'param:event:activity'#
- OBJECT_ID = 'param:object:id'#
- OBJECT_TYPE = 'param:object:type'#
- INDUCTIVE_MINER_VARIANT = 'inductive_miner_variant'#
- NOISE_THRESHOLD = 'noise_threshold'#
- MULTIPROCESSING = 'multiprocessing'#
- DISABLE_FALLTHROUGHS = 'disable_fallthroughs'#
- DISABLE_STRICT_SEQUENCE_CUT = 'disable_strict_sequence_cut'#
- DOUBLE_ARC_THRESHOLD = 'double_arc_threshold'#
- DIAGNOSTICS_WITH_TBR = 'diagnostics_with_token_based_replay'#
- pm4py.algo.discovery.ocel.ocpn.variants.classic.apply(ocel: OCEL, parameters: Dict[Any, Any] | None = None) OCPetriNet[source]#
Discovers an object-centric Petri net (without annotation) from the given object-centric event log, using the Inductive Miner as process discovery algorithm.
Reference paper: van der Aalst, Wil MP, and Alessandro Berti. “Discovering object-centric Petri nets.” Fundamenta informaticae 175.1-4 (2020): 1-40.
- Parameters:
ocel – Object-centric event log
parameters – Parameters of the algorithm, including:
Parameters.EVENT_ACTIVITY => the activity attribute to be used
Parameters.OBJECT_ID => the object identifier attribute to be used
Parameters.OBJECT_TYPE => the object type attribute to be used
Parameters.INDUCTIVE_MINER_VARIANT => variant of the inductive miner to use (“im”, “imf”, or “imd”)
Parameters.NOISE_THRESHOLD => noise threshold for the inductive miner
Parameters.MULTIPROCESSING => enables/disables multiprocessing in the inductive miner
Parameters.DISABLE_FALLTHROUGHS => disables the inductive miner fall-throughs
Parameters.DISABLE_STRICT_SEQUENCE_CUT => disables the strict sequence cut in the inductive miner
Parameters.DOUBLE_ARC_THRESHOLD => the threshold for the attribution of the “double arc”, as described in the paper.
Parameters.DIAGNOSTICS_WITH_TBR => performs token-based replay and stores the result in the return dict
- Returns:
Object-centric Petri net model. The returned object preserves the legacy dictionary payload for retro-compatibility with code that still accesses keys such as
ocpn["petri_nets"].- Return type:
ocpn