pm4py.algo.transformation.ocel.features.events.event_num_attributes module#

class pm4py.algo.transformation.ocel.features.events.event_num_attributes.Parameters(*values)[source]#

Bases: Enum

EVENT_NUM_ATTRIBUTES = 'num_ev_attr'#
pm4py.algo.transformation.ocel.features.events.event_num_attributes.apply(ocel: OCEL, parameters: Dict[Any, Any] | None = None)[source]#

Enables the extraction of a given collection of numeric event attributes in the feature table (specified inside the “num_ev_attr” parameter).

Parameters:
  • ocel – OCEL

  • parameters

    Parameters of the algorithm:
    • Parameters.EVENT_NUM_ATTRIBUTES => collection of numeric attributes to consider for feature extraction

Returns:

  • data – Extracted feature values

  • feature_names – Feature names