pm4py.algo.comparison.petrinet package

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.compare_element_usage_two_logs(net: pm4py.objects.petri_net.obj.PetriNet, im: pm4py.objects.petri_net.obj.Marking, fm: pm4py.objects.petri_net.obj.Marking, log1: Union[pm4py.objects.log.obj.EventLog, pandas.core.frame.DataFrame], log2: Union[pm4py.objects.log.obj.EventLog, pandas.core.frame.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

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

Return type

aggregated_statistics

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

Color

Return type

col

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

Color

Return type

col

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