pm4py.filtering#
The pm4py.filtering
module contains the filtering features offered in pm4py
.
Functions
|
Filters the event log, keeping cases where the specified activity occurs at least min_occurrences times. |
Filters the cases where an activity is performed by different resources multiple times. |
|
|
Finds all the sub-cases leading from an event with activity "act1" to an event with activity "act2" in the log, and returns a log containing only them. |
|
Filters the event log, keeping cases that have a duration (the timestamp of the last event minus the timestamp of the first event) between min_performance and max_performance. |
|
Filters the event log, keeping cases that have a length (number of events) between min_size and max_size. |
|
Retains traces that contain any of the specified 'directly follows' relations. |
|
Filters cases that have an end activity in the provided list. |
|
Filters a log object based on the values of a specified event attribute. |
|
Retains traces that contain any of the specified 'eventually follows' relations. |
|
Filters out the cases of the log that violate the four-eyes principle on the provided activities. |
Filters the event log, keeping only the events that have an attribute value which occurs: - in at least the specified (min_relative_stake) percentage of events when level="events", - in at least the specified (min_relative_stake) percentage of cases when level="cases". |
|
Filter an OCEL on the set of activities executed on objects of the given object type. |
|
|
Filters the objects belonging to connected components that include at least one event with the specified activity. |
|
Keeps only the objects in an OCEL belonging to a connected component with a length falling within the specified range. |
|
Returns the connected component of the object-centric event log to which the specified object belongs. |
|
Filters the objects belonging to connected components that have at least one object of the specified type. |
|
Filters the events in which an object of the given object type terminates its lifecycle. |
|
Filters the object-centric event log based on the provided event attribute values. |
|
Filters the event identifiers of an object-centric event log. |
|
Filters the object-centric event log, keeping events within the provided timestamp range. |
|
Filters the object-centric event log based on the provided object attribute values. |
|
Filters the events of the object-centric logs that are related to at least the specified number of objects per type. |
|
Filters the object types of an object-centric event log. |
Filters an object-centric event log, keeping only the specified object types with the specified set of allowed activities. |
|
|
Filters the object identifiers of an object-centric event log. |
Filters the events in which a new object of the given object type is spawned. |
|
|
Filters the event log based on the performance of specified paths. |
|
Filters the log, keeping the prefixes leading up to a given activity. |
|
Filters cases that have a start activity in the provided list. |
|
Filters the log, keeping the suffixes starting from a given activity. |
|
Filters a log based on a time interval. |
|
Filters a log based on the values of a specified trace attribute. |
|
Filters an event log based on a set of trace segments. |
|
Filters a log based on a specified set of variants. |
|
Filters the variants of the log based on a coverage percentage. |
|
Keeps the top-k variants of the log. |