pm4py.algo.conformance.alignments.edit_distance package

Submodules

pm4py.algo.conformance.alignments.edit_distance.algorithm module

class pm4py.algo.conformance.alignments.edit_distance.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

EDIT_DISTANCE = <module 'pm4py.algo.conformance.alignments.edit_distance.variants.edit_distance' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\conformance\\alignments\\edit_distance\\variants\\edit_distance.py'>
pm4py.algo.conformance.alignments.edit_distance.algorithm.apply(log1: pm4py.objects.log.obj.EventLog, log2: pm4py.objects.log.obj.EventLog, variant=<Variants.EDIT_DISTANCE: <module 'pm4py.algo.conformance.alignments.edit_distance.variants.edit_distance' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\conformance\\alignments\\edit_distance\\variants\\edit_distance.py'>>, parameters: Optional[Dict[str, Any]] = None) → List[Dict[str, Any]][source]

Aligns each trace of the first log against the second log

Parameters
  • log1 – First log

  • log2 – Second log

  • variant – Variant of the algorithm, possible values: - Variants.EDIT_DISTANCE: minimizes the edit distance

  • parameters – Parameters of the algorithm

Returns

List that contains, for each trace of the first log, the corresponding alignment

Return type

aligned_traces

Module contents