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

Submodules

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

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

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 = 'pm4py:param:case_id_key'
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

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.