pm4py.algo.transformation.ocel.features.events.event_activity module#
- pm4py.algo.transformation.ocel.features.events.event_activity.apply(ocel: OCEL, parameters: Dict[Any, Any] | None = None)[source]#
One-hot encode the activities of an OCEL, assigning to each event its own activity as feature
- Parameters:
ocel – OCEL
parameters – Parameters of the algorithm
- Returns:
data – Extracted feature values
feature_names – Feature names