pm4py.statistics.ocel.act_utils module#
- class pm4py.statistics.ocel.act_utils.Parameters(*values)[source]#
Bases:
Enum- EVENT_ID = 'param:event:id'#
- OBJECT_ID = 'param:object:id'#
- EVENT_ACTIVITY = 'param:event:activity'#
- PREFILTERING = 'prefiltering'#
- pm4py.statistics.ocel.act_utils.aggregate_events(associations: Dict[str, Set[Tuple[str, str]]]) Dict[str, Set[str]][source]#
Utility method to calculate the “events” metric from the associations.
- pm4py.statistics.ocel.act_utils.aggregate_unique_objects(associations: Dict[str, Set[Tuple[str, str]]]) Dict[str, Set[str]][source]#
Utility method to calculate the “unique objects” metric from the associations.
- pm4py.statistics.ocel.act_utils.aggregate_total_objects(associations: Dict[str, Set[Tuple[str, str]]]) Dict[str, Set[Tuple[str, str]]][source]#
Utility method to calculate the “total objects” metric from the associations.
- pm4py.statistics.ocel.act_utils.find_associations_from_relations_df(relations_df: DataFrame, parameters: Dict[Any, Any] | None = None) Dict[str, List[Tuple[str, str]]][source]#
Associates each activity in the relationship dataframe with the combinations of event identifiers and objects that are associated to the activity.
- Parameters:
rel_df – Relations dataframe
parameters – Parameters of the method, including: - Parameters.EVENT_ID => the attribute to use as event identifier - Parameters.OBJECT_ID => the attribute to use as object identifier - Parameters.EVENT_ACTIVITY => the attribute to use as activity
- Returns:
Dictionary that associates each activity to its (ev. id, obj id.) combinations.
- Return type:
dict_associations
- pm4py.statistics.ocel.act_utils.find_associations_from_ocel(ocel: OCEL, parameters: Dict[Any, Any] | None = None) Dict[str, Set[Any]][source]#
Associates each activity in the OCEL with the combinations of event identifiers and objects that are associated to the activity.
- Parameters:
ocel – Object-centric event log
parameters – Parameters of the method, including: - Parameters.EVENT_ID => the attribute to use as event identifier - Parameters.OBJECT_ID => the attribute to use as object identifier - Parameters.EVENT_ACTIVITY => the attribute to use as activity
- Returns:
Dictionary that associates each activity to its (ev. id, obj id.) combinations.
- Return type:
dict_associations