pm4py.algo.organizational_mining.sna package

Submodules

pm4py.algo.organizational_mining.sna.algorithm module

class pm4py.algo.organizational_mining.sna.algorithm.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
METRIC_NORMALIZATION = 'metric_normalization'
RESOURCE_KEY = 'pm4py:param:resource_key'
class pm4py.algo.organizational_mining.sna.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

HANDOVER_LOG = <module 'pm4py.algo.organizational_mining.sna.variants.log.handover' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\log\\handover.py'>
HANDOVER_PANDAS = <module 'pm4py.algo.organizational_mining.sna.variants.pandas.handover' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\pandas\\handover.py'>
JOINTACTIVITIES_LOG = <module 'pm4py.algo.organizational_mining.sna.variants.log.jointactivities' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\log\\jointactivities.py'>
JOINTACTIVITIES_PANDAS = <module 'pm4py.algo.organizational_mining.sna.variants.pandas.jointactivities' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\pandas\\jointactivities.py'>
SUBCONTRACTING_LOG = <module 'pm4py.algo.organizational_mining.sna.variants.log.subcontracting' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\log\\subcontracting.py'>
SUBCONTRACTING_PANDAS = <module 'pm4py.algo.organizational_mining.sna.variants.pandas.subcontracting' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\pandas\\subcontracting.py'>
WORKING_TOGETHER_LOG = <module 'pm4py.algo.organizational_mining.sna.variants.log.working_together' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\log\\working_together.py'>
WORKING_TOGETHER_PANDAS = <module 'pm4py.algo.organizational_mining.sna.variants.pandas.working_together' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\pandas\\working_together.py'>
pm4py.algo.organizational_mining.sna.algorithm.apply(log, parameters=None, variant=<Variants.HANDOVER_LOG: <module 'pm4py.algo.organizational_mining.sna.variants.log.handover' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\organizational_mining\\sna\\variants\\log\\handover.py'>>)[source]

Calculates a SNA metric

Parameters
  • log – Log

  • parameters – Possible parameters of the algorithm

  • variant

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

    • Variants.WORKING_TOGETHER_LOG

    • Variants.SUBCONTRACTING_LOG

    • Variants.JOINTACTIVITIES_LOG

    • Variants.HANDOVER_PANDAS

    • Variants.WORKING_TOGETHER_PANDAS

    • Variants.SUBCONTRACTING_PANDAS

    • Variants.JOINTACTIVITIES_PANDAS

Returns

Tuple containing the metric matrix and the resources list

Return type

tuple

pm4py.algo.organizational_mining.sna.parameters module

class pm4py.algo.organizational_mining.sna.parameters.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
METRIC_NORMALIZATION = 'metric_normalization'
RESOURCE_KEY = 'pm4py:param:resource_key'

pm4py.algo.organizational_mining.sna.util module

pm4py.algo.organizational_mining.sna.util.cluster_affinity_propagation(sna_results: List[List[Any]], parameters=None) → Dict[str, List[str]][source]

Performs a clustering using the affinity propagation algorithm provided by Scikit Learn

Parameters
  • sna_results – Values for a SNA metric

  • parameters – Parameters of the algorithm

Returns

Dictionary that contains, for each cluster that has been identified, the list of resources of the cluster

Return type

clustering

Module contents