pm4py.algo.discovery.dfg package#

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/>.

Subpackages#

Submodules#

pm4py.algo.discovery.dfg.algorithm 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.algo.discovery.dfg.algorithm.Parameters(value)[source]#

Bases: Enum

An enumeration.

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.dfg.algorithm.Variants(value)[source]#

Bases: Enum

An enumeration.

NATIVE = <module 'pm4py.algo.discovery.dfg.variants.native' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\discovery\\dfg\\variants\\native.py'>#
FREQUENCY = <module 'pm4py.algo.discovery.dfg.variants.native' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\discovery\\dfg\\variants\\native.py'>#
PERFORMANCE = <module 'pm4py.algo.discovery.dfg.variants.performance' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\discovery\\dfg\\variants\\performance.py'>#
FREQUENCY_GREEDY = <module 'pm4py.algo.discovery.dfg.variants.native' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\discovery\\dfg\\variants\\native.py'>#
PERFORMANCE_GREEDY = <module 'pm4py.algo.discovery.dfg.variants.performance' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\discovery\\dfg\\variants\\performance.py'>#
FREQ_TRIPLES = <module 'pm4py.algo.discovery.dfg.variants.freq_triples' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\discovery\\dfg\\variants\\freq_triples.py'>#
CASE_ATTRIBUTES = <module 'pm4py.algo.discovery.dfg.variants.case_attributes' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\discovery\\dfg\\variants\\case_attributes.py'>#
CLEAN = <module 'pm4py.algo.discovery.dfg.variants.clean' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\discovery\\dfg\\variants\\clean.py'>#
pm4py.algo.discovery.dfg.algorithm.apply(log: Union[EventLog, EventStream, DataFrame], parameters: Optional[Dict[Any, Any]] = None, variant=Variants.NATIVE) Dict[Tuple[str, str], float][source]#

Calculates DFG graph (frequency or performance) starting from a log

Parameters#

log

Log

parameters
Possible parameters passed to the algorithms:

Parameters.AGGREGATION_MEASURE -> performance aggregation measure (min, max, mean, median) Parameters.ACTIVITY_KEY -> Attribute to use as activity Parameters.TIMESTAMP_KEY -> Attribute to use as timestamp

variant
Variant of the algorithm to use, possible values:
  • Variants.NATIVE

  • Variants.FREQUENCY

  • Variants.FREQUENCY_GREEDY

  • Variants.PERFORMANCE

  • Variants.PERFORMANCE_GREEDY

  • Variants.FREQ_TRIPLES

Returns#

dfg

DFG graph

pm4py.algo.discovery.dfg.replacement 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/>.

pm4py.algo.discovery.dfg.replacement.replace_values(dfg1, dfg2)[source]#

Replace edge values specified in a DFG by values from a (potentially bigger) DFG

Parameters#

dfg1

First specified DFG (where values of edges should be replaces)

dfg2

Second specified DFG (from which values should be taken)

Returns#

dfg1

First specified DFG with overrided values