pm4py.algo.discovery.split_miner.variants.sm2 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.split_miner.variants.sm2.Parameters(*values)[source]#

Bases: Enum

EPSILON = 'split_miner_epsilon'#
ETA = 'split_miner_eta'#
OR_MINIMISE = 'split_miner_or_minimise'#
ACTIVITY_KEY = 'pm4py:param:activity_key'#
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
class pm4py.algo.discovery.split_miner.variants.sm2.SM2SplitMiner[source]#

Bases: SplitMinerFramework

Split Miner 2.0 — lifecycle-aware, OR-preserving variant.

do_extract_traces(log: EventLog | EventStream | DataFrame, parameters: Dict[str, Any] | None = None) → List[List[str]][source]#

Project a pm4py log onto label sequences wrapped with sentinels.

Each trace becomes [START_LABEL, *activity_labels, END_LABEL] so the resulting BPMN has a single source and a single sink. Subclasses that need richer per-event data (e.g. lifecycle phases) override this method.

do_concurrency(dfg: Dict[Tuple[str, str], int], traces, loops: LoopInfo, parameters: Dict[str, Any] | None = None) → ConcurrencyResult[source]#
do_filter(pdfg, parameters=None)[source]#
or_handling_is_mandatory() → bool[source]#

Whether do_minimize_or_joins() runs unconditionally.

For classic Split Miner the OR-join minimisation is an optional post-step governed by the minimize_or_joins flag. For Split Miner 2.0 the OR handling (inclusive joins left in place plus the OR-split heuristic) is an intrinsic stage of the reference replaceIORs step, so that variant forces it on regardless of the flag.

do_minimize_or_joins(wg: WorkingGraph, parameters=None)[source]#
do_export_bpmn(wg: WorkingGraph, parameters=None) → BPMN[source]#
pm4py.algo.discovery.split_miner.variants.sm2.apply(log: EventLog | EventStream | DataFrame | Dict[Tuple[str, str], int] | str, parameters: Dict[str, Any] | None = None) → BPMN[source]#

Discover a BPMN model using Split Miner 2.0.