pm4py.algo.organizational_mining.roles.algorithm module#

class pm4py.algo.organizational_mining.roles.algorithm.Variants(*values)[source]#

Bases: Enum

LOG = <module 'pm4py.algo.organizational_mining.roles.variants.log' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/organizational_mining/roles/variants/log.py'>#
PANDAS = <module 'pm4py.algo.organizational_mining.roles.variants.pandas' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/organizational_mining/roles/variants/pandas.py'>#
pm4py.algo.organizational_mining.roles.algorithm.apply(log: EventLog | EventStream | DataFrame, variant=None, parameters: Dict[Any, Any] | None = None) List[Any][source]#

Gets the roles (group of different activities done by similar resources) out of the log.

The roles detection is introduced by Burattin, Andrea, Alessandro Sperduti, and Marco Veluscek. “Business models enhancement through discovery of roles.” 2013 IEEE Symposium on Computational Intelligence and Data Mining (CIDM). IEEE, 2013.

Parameters:
  • log – Log object (also Pandas dataframe)

  • variant

    Variant of the algorithm to apply. Possible values:
    • Variants.LOG

    • Variants.PANDAS

  • parameters – Possible parameters of the algorithm

Returns:

List of different roles inside the log, including: roles_threshold_parameter => threshold to use with the algorithm

Return type:

roles