pm4py.algo.conformance.alignments.process_tree.variants.approximated.original 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.conformance.alignments.process_tree.variants.approximated.original.Parameters(*values)[source]#

Bases: Enum

MAX_TRACE_LENGTH = 'max_trace_length'#
MAX_PROCESS_TREE_HEIGHT = 'max_process_tree_height'#
PARAMETER_VARIANT_DELIMITER = 'variant_delimiter'#
ACTIVITY_KEY = 'pm4py:param:activity_key'#
PARAM_MAX_ALIGN_TIME_TRACE = 'max_align_time_trace'#
PARAM_MAX_ALIGN_TIME = 'max_align_time'#
pm4py.algo.conformance.alignments.process_tree.variants.approximated.original.apply_from_variants_tree_string(var_list, tree_string, parameters=None)[source]#

Apply the alignments from the specification of a list of variants in the log. The tree is specified as a PTML input

Parameters:
  • var_list – List of variants (for each item, the first entry is the variant itself, the second entry may be the number of cases)

  • tree_string – PTML string representing the tree

  • parameters – Parameters of the algorithm

    Returns

  • ————–

  • dictio_alignments – Dictionary that assigns to each variant its alignment

pm4py.algo.conformance.alignments.process_tree.variants.approximated.original.apply_from_variants_list(var_list, tree, parameters=None)[source]#

Apply the alignments from the specification of a list of variants in the log

Parameters:
  • var_list – List of variants (for each item, the first entry is the variant itself, the second entry may be the number of cases)

  • tree – Process tree

  • parameters – Parameters of the algorithm

Returns:

Dictionary that assigns to each variant its alignment

Return type:

dictio_alignments

pm4py.algo.conformance.alignments.process_tree.variants.approximated.original.apply(obj: Trace | EventLog, pt: ProcessTree, parameters=None)[source]#

Returns approximated alignments for a process tree

Parameters:
  • obj – Event log or trace (a conversion is done if necessary)

  • pt – Process tree

  • parameters – Parameters of the algorithm

Returns:

  • alignments – Approximated alignments

  • param obj:

  • param pt:

  • param parameters:

  • return: