pm4py.objects.log.util.get_log_encoded module#

pm4py.objects.log.util.get_log_encoded.get_log_encoded(event_log, trace_attributes=[], event_attributes=[], concatenate=False)[source]#

Get event log encoded into matrix.

Parameters:
  • event_log – Trace log

  • trace_attributes – Attributes of the trace to be encoded

  • event_attributes – Attributes of the events to be encoded

  • concatenate – Boolean indicating if to generate all sub-sequences of events in a trace

Returns:

  • dataset – A numpy matrix with the event log

  • columns – The names of the columns in the dataset