pm4py.org.discover_activity_based_resource_similarity#
- pm4py.org.discover_activity_based_resource_similarity(log: EventLog | DataFrame, activity_key: str = 'concept:name', resource_key: str = 'org:resource', timestamp_key: str = 'time:timestamp', case_id_key: str = 'case:concept:name') SNA [source]#
Calculates similarity between the resources in the event log, based on their activity profiles.
- Return type:
- Parameters:
log – event log / Pandas dataframe
activity_key (
str
) – attribute to be used for the activityresource_key (
str
) – attribute to be used for the resourcetimestamp_key (
str
) – attribute to be used for the timestampcase_id_key (
str
) – attribute to be used as case identifier
import pm4py act_res_sim = pm4py.discover_activity_based_resource_similarity(dataframe, resource_key='org:resource', activity_key='concept:name', timestamp_key='time:timestamp', case_id_key='case:concept:name')