pm4py.algo.discovery.performance_spectrum.variants.dataframe_disconnected module#

class pm4py.algo.discovery.performance_spectrum.variants.dataframe_disconnected.Parameters(*values)[source]#

Bases: Enum

ACTIVITY_KEY = 'pm4py:param:activity_key'#
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
CASE_ID_KEY = 'pm4py:param:case_id_key'#
PARAMETER_SAMPLE_SIZE = 'sample_size'#
SORT_LOG_REQUIRED = 'sort_log_required'#
pm4py.algo.discovery.performance_spectrum.variants.dataframe_disconnected.gen_patterns(pattern, length)[source]#
pm4py.algo.discovery.performance_spectrum.variants.dataframe_disconnected.apply(dataframe: DataFrame, list_activities: List[str], sample_size: int, parameters: Dict[str | Parameters, Any] | None = None) Dict[str, Any][source]#

Finds the disconnected performance spectrum provided a dataframe and a list of activities

Parameters:
  • dataframe – Dataframe

  • list_activities – List of activities interesting for the performance spectrum (at least two)

  • sample_size – Size of the sample

  • parameters

    Parameters of the algorithm, including:
    • Parameters.ACTIVITY_KEY

    • Parameters.TIMESTAMP_KEY

    • Parameters.CASE_ID_KEY

Returns:

Points of the performance spectrum

Return type:

points

pm4py.algo.discovery.performance_spectrum.variants.dataframe_disconnected.shift_index(index, n)[source]#