Union[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:


  • log – event log / Pandas dataframe

  • activity_key (str) – attribute to be used for the activity

  • resource_key (str) – attribute to be used for the resource

  • timestamp_key (str) – attribute to be used for the timestamp

  • case_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')