pm4py.ocel#

The pm4py.ocel module contains the object-centric process mining features offered in pm4py

Functions

discover_objects_graph(ocel[, graph_type])

Discovers an object graph from the provided object-centric event log

discover_oc_petri_net(ocel)

Discovers an object-centric Petri net from the provided object-centric event log.

discover_ocdfg(ocel[, business_hours, ...])

Discovers an OC-DFG from an object-centric event log.

ocel_add_index_based_timedelta(ocel)

Adds a small time-delta to the timestamp column based on the current index of the event.

ocel_drop_duplicates(ocel)

Drop relations between events and objects happening at the same time, with the same activity, to the same object identifier.

ocel_flattening(ocel, object_type)

Flattens the object-centric event log to a traditional event log with the choice of an object type.

ocel_get_attribute_names(ocel)

Gets the list of attributes at the event and the object level of an object-centric event log (e.g.

ocel_get_object_types(ocel)

Gets the list of object types contained in the object-centric event log (e.g., ["order", "item", "delivery"]).

ocel_merge_duplicates(ocel[, have_common_object])

Merge events in the OCEL that happen with the same activity at the same timestamp

ocel_object_type_activities(ocel)

Gets the set of activities performed for each object type

ocel_objects_interactions_summary(ocel)

Gets the objects interactions summary of an object-centric event log.

ocel_objects_ot_count(ocel)

Counts for each event the number of related objects per type

ocel_objects_summary(ocel)

Gets the objects summary of an object-centric event log

ocel_sort_by_additional_column(ocel, ...[, ...])

Sorts the OCEL not only based on the timestamp column and the index, but using an additional sorting column that further determines the order of the events happening at the same timestamp.

ocel_temporal_summary(ocel)

Returns the ``temporal summary'' from an object-centric event log. The temporal summary aggregates all the events performed in the same timestamp, and reports the set of activities and the involved objects.

sample_ocel_connected_components(ocel[, ...])

Given an object-centric event log, returns a sampled event log with a subset of the executions.

sample_ocel_objects(ocel, num_objects)

Given an object-centric event log, returns a sampled event log with a subset of the objects that is chosen in a random way.