pm4py.evaluation.earth_mover_distance package

Submodules

pm4py.evaluation.earth_mover_distance.evaluator module

class pm4py.evaluation.earth_mover_distance.evaluator.Variants(value)[source]

Bases: enum.Enum

An enumeration.

PYEMD = <module 'pm4py.evaluation.earth_mover_distance.variants.pyemd' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\evaluation\\earth_mover_distance\\variants\\pyemd.py'>
pm4py.evaluation.earth_mover_distance.evaluator.apply(lang1, lang2, variant=<Variants.PYEMD: <module 'pm4py.evaluation.earth_mover_distance.variants.pyemd' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\evaluation\\earth_mover_distance\\variants\\pyemd.py'>>, parameters=None)[source]

Gets the EMD language between the two languages

Parameters
  • lang1 – First language

  • lang2 – Second language

  • variant – Variants of the algorithm

  • parameters – Parameters

  • variants

    Variants of the algorithm, including:
    • Variants.PYEMD: pyemd based distance

Returns

EMD distance

Return type

dist

Deprecated since version 2.2.5: This will be removed in 3.0. Use the pm4py.algo.evaluation.earth_mover_distance package

Module contents