pm4py.objects.log.util.get_class_representation module#
- 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