pm4py.streaming.algo.discovery.dfg.variants package

Submodules

pm4py.streaming.algo.discovery.dfg.variants.frequency module

class pm4py.streaming.algo.discovery.dfg.variants.frequency.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
ACT_DICT_ID = 'act_dict_id'
CASE_DICT_ID = 'case_dict_id'
CASE_ID_KEY = 'case_id_glue'
DFG_DICT_ID = 'dfg_dict_id'
DICT_ID = 'dict_id'
DICT_VARIANT = 'dict_variant'
START_ACT_DICT_ID = 'start_act_dict_id'
class pm4py.streaming.algo.discovery.dfg.variants.frequency.StreamingDfgDiscovery(parameters=None)[source]

Bases: pm4py.streaming.algo.interface.StreamingAlgorithm

build_dictionaries(parameters)[source]

Builds the dictionaries that are needed by the discovery operation

Parameters

parameters

Parameters:
  • Parameters.DICT_VARIANT: type of dictionary to use

  • Parameters.CASE_DICT_ID: identifier of the case dictionary (hosting the last activity of a case) (0)

  • Parameters.DFG_DICT_ID: identifier of the DFG dictionary (1)

  • Parameters.ACT_ID: identifier of the dictionary hosting the count of the activities (2)

  • Parameters.START_ACT_DICT_ID: identifier of the dictionary hosting the count of the start activities (3)

encode_str(stru)[source]

Encodes a string for storage in generic dictionaries

encode_tuple(tup)[source]

Encodes a tuple for storage in generic dictionaries

event_without_activity_or_case(event)[source]

Print an error message when an event is without the activity or the case identifier

Parameters

event – Event

pm4py.streaming.algo.discovery.dfg.variants.frequency.apply(parameters=None)[source]

Creates a StreamingDFGDiscovery object

Parameters

parameters – Parameters of the algorithm

Module contents