pm4py.filtering#
The pm4py.filtering
module contains the filtering features offered in pm4py
Functions
|
Filters the event log, keeping the cases where the specified activity occurs at least min_occurrences times. |
Filters the cases where an activity is repeated by different resources. |
|
|
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 the cases having a duration (the timestamp of the last event minus the timestamp of the first event) included between min_performance and max_performance |
|
Filters the event log, keeping the cases having a length (number of events) included between min_size and max_size |
|
Retain traces that contain any of the specified 'directly follows' relations. |
|
Filter cases having an end activity in the provided list |
|
Filter a log object on the values of some event attribute |
|
Retain traces that contain any of the specified 'eventually follows' relations. |
|
Filter the cases of the log which violates the four eyes principle on the provided activities. |
Filters the event log keeping only the events having 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" |
|
|
Filters the objects belonging to the connected components having at least an event with the provided activity. |
|
Keeps only the objects in an OCEL belonging to a connected component with a length falling in a specified range |
|
Returns the connected component of the object-centric event log to which the object with the provided identifier belongs. |
|
Filters the objects belonging to the connected components having at least an object of the provided object type. |
|
Filters the events in which an object for the given object type terminates its lifecycle. |
|
Filters the object-centric event log on the provided event attributes values |
|
Filters the event identifiers of an object-centric event log. |
|
Filters the object-centric event log keeping events in the provided timestamp range |
|
Filters the object-centric event log on the provided object attributes values |
|
Filters the events of the object-centric logs which are related to at least the specified amount 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 activity set (filters out the rest). |
|
|
Filters the object identifiers of an object-centric event log. |
Filters the events in which a new object for the given object type is spawn. |
|
|
Filters the event log, either: - (keep=True) keeping the cases having the specified path (tuple of 2 activities) with a duration included between min_performance and max_performance - (keep=False) discarding the cases having the specified path with a duration included between min_performance and max_performance |
|
Filters the log, keeping the prefixes to a given activity. |
|
Filter cases having a start activity in the provided list |
|
Filters the log, keeping the suffixes from a given activity. |
|
Filter a log on a time interval |
|
Filter a log on the values of a trace attribute |
|
Filters an event log on a set of traces. |
|
Filter a log on a specified set of variants |
|
Filters the variants of the log by a coverage percentage (e.g., if min_coverage_percentage=0.4, and we have a log with 1000 cases, of which 500 of the variant 1, 400 of the variant 2, and 100 of the variant 3, the filter keeps only the traces of variant 1 and variant 2). |
Filters the variants of the log by a maximum coverage percentage (e.g., if max_coverage_percentage=0.4, and we have a log with 1000 cases, of which 500 of the variant 1, 400 of the variant 2, and 100 of the variant 3, the filter keeps only the traces of variant 2 and variant 3). |
|
|
Keeps the top-k variants of the log |