pm4py.algo.enhancement.roles package


pm4py.algo.enhancement.roles.algorithm module

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

Bases: enum.Enum

An enumeration.

LOG = <module 'pm4py.algo.enhancement.roles.variants.log' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\enhancement\\roles\\variants\\'>
PANDAS = <module 'pm4py.algo.enhancement.roles.variants.pandas' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\enhancement\\roles\\variants\\'>
pm4py.algo.enhancement.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


Deprecated since version 2.2.5: This will be removed in 3.0.0. use pm4py.algo.organizational_mining.roles.algorithm instead

Module contents