pm4py.algo.discovery.alpha package

Submodules

pm4py.algo.discovery.alpha.algorithm module

class pm4py.algo.discovery.alpha.algorithm.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

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

Bases: enum.Enum

An enumeration.

ALPHA_VERSION_CLASSIC = <module 'pm4py.algo.discovery.alpha.variants.classic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\discovery\\alpha\\variants\\classic.py'>
ALPHA_VERSION_PLUS = <module 'pm4py.algo.discovery.alpha.variants.plus' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\discovery\\alpha\\variants\\plus.py'>
pm4py.algo.discovery.alpha.algorithm.apply(log, parameters=None, variant=<Variants.ALPHA_VERSION_CLASSIC: <module 'pm4py.algo.discovery.alpha.variants.classic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\discovery\\alpha\\variants\\classic.py'>>)[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, parameters=None, variant=<Variants.ALPHA_VERSION_CLASSIC: <module 'pm4py.algo.discovery.alpha.variants.classic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\discovery\\alpha\\variants\\classic.py'>>)[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

Module contents