pm4py.algo.discovery.inductive.variants.im_d package

Submodules

pm4py.algo.discovery.inductive.variants.im_d.dfg_based module

class pm4py.algo.discovery.inductive.variants.im_d.dfg_based.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
CASE_ID_KEY = 'case_id_glue'
CONCURRENT_KEY = 'concurrent'
EMPTY_TRACE_KEY = 'empty_trace'
NOISE_THRESHOLD = 'noiseThreshold'
ONCE_PER_TRACE_KEY = 'once_per_trace'
START_TIMESTAMP_KEY = 'pm4py:param:start_timestamp_key'
STRICT_TAU_LOOP_KEY = 'strict_tau_loop'
TAU_LOOP_KEY = 'tau_loop'
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'
pm4py.algo.discovery.inductive.variants.im_d.dfg_based.apply(log, parameters=None)[source]

Apply the IMDF algorithm to a log obtaining a Petri net along with an initial and final marking

Parameters
  • log – Log

  • parameters

    Parameters of the algorithm, including:

    Parameters.ACTIVITY_KEY -> attribute of the log to use as activity name (default concept:name)

Returns

  • net – Petri net

  • initial_marking – Initial marking

  • final_marking – Final marking

pm4py.algo.discovery.inductive.variants.im_d.dfg_based.apply_dfg(dfg, parameters=None, activities=None, contains_empty_traces=False, start_activities=None, end_activities=None)[source]

Apply the IMDF algorithm to a DFG graph obtaining a Petri net along with an initial and final marking

Parameters
  • dfg – Directly-Follows graph

  • parameters

    Parameters of the algorithm, including:

    Parameters.ACTIVITY_KEY -> attribute of the log to use as activity name (default concept:name)

  • activities – Activities of the process (default None)

  • contains_empty_traces – Boolean value that is True if the event log from which the DFG has been extracted contains empty traces

  • start_activities – If provided, the start activities of the log

  • end_activities – If provided, the end activities of the log

Returns

  • net – Petri net

  • initial_marking – Initial marking

  • final_marking – Final marking

pm4py.algo.discovery.inductive.variants.im_d.dfg_based.apply_tree(log, parameters=None)[source]

Apply the IMDF algorithm to a log obtaining a process tree

Parameters
  • log – Log

  • parameters

    Parameters of the algorithm, including:

    Parameters.ACTIVITY_KEY -> attribute of the log to use as activity name (default concept:name)

Returns

Process tree

Return type

tree

pm4py.algo.discovery.inductive.variants.im_d.dfg_based.apply_tree_dfg(dfg, parameters=None, activities=None, contains_empty_traces=False, start_activities=None, end_activities=None)[source]

Apply the IMDF algorithm to a DFG graph obtaining a process tree

Parameters
  • dfg – Directly-follows graph

  • parameters

    Parameters of the algorithm, including:

    Parameters.ACTIVITY_KEY -> attribute of the log to use as activity name (default concept:name)

  • activities – Activities of the process (default None)

  • contains_empty_traces – Boolean value that is True if the event log from which the DFG has been extracted contains empty traces

  • start_activities – If provided, the start activities of the log

  • end_activities – If provided, the end activities of the log

Returns

Process tree

Return type

tree

Deprecated since version 2.2.10: This will be removed in 3.0.0. use newer IM implementation (IM_CLEAN)

pm4py.algo.discovery.inductive.variants.im_d.dfg_based.apply_tree_variants(variants, parameters=None)[source]

Apply the IMDF algorithm to a dictionary/list/set of variants a log obtaining a process tree

Parameters
  • variants – Dictionary/list/set of variants in the log

  • parameters

    Parameters of the algorithm, including:

    Parameters.ACTIVITY_KEY -> attribute of the log to use as activity name (default concept:name)

Returns

Process tree

Return type

tree

pm4py.algo.discovery.inductive.variants.im_d.dfg_based.apply_variants(variants, parameters=None)[source]

Apply the IMDF algorithm to a dictionary/list/set of variants obtaining a Petri net along with an initial and final marking

Parameters
  • variants – Dictionary/list/set of variants in the log

  • parameters

    Parameters of the algorithm, including:

    Parameters.ACTIVITY_KEY -> attribute of the log to use as activity name (default concept:name)

Returns

  • net – Petri net

  • initial_marking – Initial marking

  • final_marking – Final marking

Module contents