pm4py.algo.discovery.alpha.algorithm module#

class pm4py.algo.discovery.alpha.algorithm.Parameters(*values)[source]#

Bases: Enum

ACTIVITY_KEY = 'pm4py:param:activity_key'#
START_TIMESTAMP_KEY = 'pm4py:param:start_timestamp_key'#
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
CASE_ID_KEY = 'pm4py:param:case_id_key'#
class pm4py.algo.discovery.alpha.algorithm.Variants(*values)[source]#

Bases: Enum

ALPHA_VERSION_CLASSIC = <module 'pm4py.algo.discovery.alpha.variants.classic' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/discovery/alpha/variants/classic.py'>#
ALPHA_VERSION_PLUS = <module 'pm4py.algo.discovery.alpha.variants.plus' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/discovery/alpha/variants/plus.py'>#
pm4py.algo.discovery.alpha.algorithm.apply(log: EventLog | EventStream | DataFrame, parameters: Dict[str | Parameters, Any] | None = None, variant=Variants.ALPHA_VERSION_CLASSIC) Tuple[PetriNet, Marking, Marking][source]#

Apply the Alpha Miner on top of a log

Parameters:
  • log – Log

  • variant

    Variant of the algorithm to use:
    • Variants.ALPHA_VERSION_CLASSIC

    • Variants.ALPHA_VERSION_PLUS

  • parameters

    Possible parameters of the algorithm, including:

    Parameters.ACTIVITY_KEY -> Name of the attribute that contains the activity

Returns:

  • net – Petri net

  • marking – Initial marking

  • final_marking – Final marking

pm4py.algo.discovery.alpha.algorithm.apply_dfg(dfg: Dict[Tuple[str, str], int], parameters: Dict[str | Parameters, Any] | None = None, variant=Variants.ALPHA_VERSION_CLASSIC) Tuple[PetriNet, Marking, Marking][source]#

Apply Alpha Miner directly on top of a DFG graph

Parameters:
  • dfg – Directly-Follows graph

  • variant – Variant of the algorithm to use (classic)

  • parameters

    Possible parameters of the algorithm, including:

    activity key -> Name of the attribute that contains the activity

Returns:

  • net – Petri net

  • marking – Initial marking

  • final_marking – Final marking