pm4py.algo.comparison.petrinet package#
PM4Py – A Process Mining Library for Python
Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
Submodules#
pm4py.algo.comparison.petrinet.element_usage_comparison module#
PM4Py – A Process Mining Library for Python
Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
- 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: EventLog | DataFrame, log2: EventLog | DataFrame, parameters: Dict[Any, Any] | None = 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