pm4py.algo.organizational_mining.roles package


pm4py.algo.organizational_mining.roles.algorithm module

class pm4py.algo.organizational_mining.roles.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

LOG = <module 'pm4py.algo.organizational_mining.roles.variants.log' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\roles\\variants\\'>
PANDAS = <module 'pm4py.algo.organizational_mining.roles.variants.pandas' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\roles\\variants\\'>
pm4py.algo.organizational_mining.roles.algorithm.apply(log, variant=None, parameters=None)[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.

  • 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


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

Return type


Module contents