pm4py.objects.ocel.util.events_per_object_type module#

class pm4py.objects.ocel.util.events_per_object_type.Parameters(*values)[source]#

Bases: Enum

EVENT_ID = 'param:event:id'#
OBJECT_TYPE = 'param:object:type'#
pm4py.objects.ocel.util.events_per_object_type.apply(ocel: OCEL, parameters: Dict[Any, Any] | None = None)[source]#

Returns for each object type the number of events related to at least one object of the given type.

Parameters:
  • ocel – Object-centric event log

  • parameters – Parameters of the algorithm, including: - Parameters.EVENT_ID => the event identifier - Parameters.OBJECT_TYPE => the object type column

Returns:

Dictionary associating to each object type the number of events related to at least one object of the given type.

Return type:

dictio