pm4py.objects.log.util.get_class_representation 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.objects.log.util.get_class_representation.get_class_representation_by_str_ev_attr_value_presence(log, str_attr_name, str_attr_value)[source]#

Get the representation for the target part of the decision tree learning if the focus is on the presence of a given value of a (string) event attribute

Parameters:
  • log – Trace log

  • str_attr_name – Attribute name to consider

  • str_attr_value – Attribute value to consider

Returns:

  • target – Target part for decision tree learning

  • classes – Name of the classes, in order

pm4py.objects.log.util.get_class_representation.get_class_representation_by_str_ev_attr_value_value(log, str_attr_name)[source]#

Get the representation for the target part of the decision tree learning if the focus is on all (string) values of an event attribute

Parameters:
  • log – Trace log

  • str_attr_name – Attribute name to consider

Returns:

  • target – Target part for decision tree learning

  • classes – Name of the classes, in order

pm4py.objects.log.util.get_class_representation.get_class_representation_by_trace_duration(log, target_trace_duration, timestamp_key='time:timestamp', parameters=None)[source]#

Get class representation by splitting traces according to trace duration

Parameters:
  • log – Trace log

  • target_trace_duration – Target trace duration

  • timestamp_key – Timestamp key

Returns:

  • target – Target part for decision tree learning

  • classes – Name of the classes, in order