pm4py.algo.filtering.ocel.activity_type_matching module#
- class pm4py.algo.filtering.ocel.activity_type_matching.Parameters(*values)[source]#
Bases:
Enum- ACTIVITY_KEY = 'pm4py:param:activity_key'#
- OBJECT_TYPE = 'param:object:type'#
- TEMP_COLUMN = 'temp_column'#
- TEMP_SEPARATOR = 'temp_separator'#
- pm4py.algo.filtering.ocel.activity_type_matching.apply(ocel: OCEL, correspondence_dict: Dict[str, Collection[str]], parameters: Dict[Any, Any] | None = None) OCEL[source]#
Filters an object-centric event log keeping only the specified object types with the specified activity set (filters out the rest).
- Parameters:
ocel – Object-centric event log
correspondence_dict – Dictionary containing, for every object type of interest, a collection of allowed activities. Example:
{“order”: [“Create Order”], “element”: [“Create Order”, “Create Delivery”]}
Keeps only the object types “order” and “element”. For the “order” object type, only the activity “Create Order” is kept. For the “element” object type, only the activities “Create Order” and “Create Delivery” are kept.
parameters –
- Parameters of the algorithm, including:
Parameters.ACTIVITY_KEY => the activity key
Parameters.OBJECT_TYPE => the object type column
- Returns:
Filtered object-centric event log
- Return type:
filtered_ocel