pm4py.algo.comparison.petrinet 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/>.

Submodules#

pm4py.algo.comparison.petrinet.element_usage_comparison 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.comparison.petrinet.element_usage_comparison.give_color_to_direction_dynamic(dir)[source]#

Assigns a color to the direction (dynamic-defined colors)

Parameters#

dir

Direction

Returns#

col

Color

pm4py.algo.comparison.petrinet.element_usage_comparison.give_color_to_direction_static(dir)[source]#

Assigns a color to the direction (static-defined colors)

Parameters#

dir

Direction

Returns#

col

Color

pm4py.algo.comparison.petrinet.element_usage_comparison.compare_element_usage_two_logs(net: PetriNet, im: Marking, fm: Marking, log1: Union[EventLog, DataFrame], log2: Union[EventLog, DataFrame], parameters: Optional[Dict[Any, Any]] = None) Dict[Any, Any][source]#

Returns some statistics (also visual) about the comparison of the usage of the elements in two logs given an accepting Petri net

Parameters#

net

Petri net

im

Initial marking

fm

Final marking

log1

First log

log2

Second log

parameters

Parameters of the algorithm (to be passed to the token-based replay)

Returns#

aggregated_statistics

Statistics about the usage of places, transitions and arcs in the net