pm4py.objects.log.util.insert_classifier module#

pm4py.objects.log.util.insert_classifier.search_act_class_attr(log, force_activity_transition_insertion=False)[source]#

Search among classifiers expressed in the log one that is good for the process model extraction

Parameters:
  • log – Trace log

  • force_activity_transition_insertion – Optionally force the activitiy+transition classifier insertion

Returns:

Trace log (plus eventually one additional event attribute as the classifier)

Return type:

log

pm4py.objects.log.util.insert_classifier.insert_activity_classifier_attribute(log, classifier, force_activity_transition_insertion=False)[source]#

Insert the specified classifier as additional event attribute in the log

Parameters:
  • log – Trace log

  • classifier – Event classifier

  • force_activity_transition_insertion – Optionally force the activitiy+transition classifier insertion

Returns:

  • log – Trace log (plus eventually one additional event attribute as the classifier)

  • classifier_attr_key – Attribute name of the attribute that contains the classifier value

pm4py.objects.log.util.insert_classifier.insert_trace_classifier_attribute(log, classifier)[source]#

Insert the specified classifier as additional trace attribute in the log

Parameter#

log

Trace log

classifier

Event classifier

returns:
  • log – Trace log (plus eventually one additional event attribute as the classifier)

  • classifier_attr_key – Attribute name of the attribute that contains the classifier value