pm4py.algo.filtering.ocel.event_attributes module#
- class pm4py.algo.filtering.ocel.event_attributes.Parameters(*values)[source]#
Bases:
Enum- ATTRIBUTE_KEY = 'pm4py:param:attribute_key'#
- TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
- POSITIVE = 'positive'#
- pm4py.algo.filtering.ocel.event_attributes.apply(ocel: OCEL, values: Collection[Any], parameters: Dict[Any, Any] | None = None) OCEL[source]#
Filters the object-centric event log on the provided event attributes values
- Parameters:
ocel – Object-centric event log
values – Collection of values
parameters – Parameters of the algorithm, including: - Parameters.ATTRIBUTE_KEY => the attribute that should be filtered - Parameters.POSITIVE => decides if the values should be kept (positive=True) or removed (positive=False)
- Returns:
Filtered object-centric event log
- Return type:
ocel
- pm4py.algo.filtering.ocel.event_attributes.apply_timestamp(ocel: OCEL, min_timest: datetime | str, max_timest: datetime | str, parameters: Dict[Any, Any] | None = None) OCEL[source]#
Filters the object-centric event log keeping events in the provided timestamp range
- Parameters:
ocel – Object-centric event log
min_timest – Left extreme of the allowed timestamp interval (provided in the format: YYYY-mm-dd HH:MM:SS)
max_timest – Right extreme of the allowed timestamp interval (provided in the format: YYYY-mm-dd HH:MM:SS)
parameters – Parameters of the algorithm, including: - Parameters.TIMESTAMP_KEY => the attribute to use as timestamp
- Returns:
Filtered object-centric event log
- Return type:
filtered_ocel