pm4py.algo.discovery.log_skeleton package

Submodules

pm4py.algo.discovery.log_skeleton.algorithm module

class pm4py.algo.discovery.log_skeleton.algorithm.Variants(value)[source]

Bases: enum.Enum

An enumeration.

CLASSIC = <module 'pm4py.algo.discovery.log_skeleton.variants.classic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\discovery\\log_skeleton\\variants\\classic.py'>
pm4py.algo.discovery.log_skeleton.algorithm.apply(log, variant=<Variants.CLASSIC: <module 'pm4py.algo.discovery.log_skeleton.variants.classic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\discovery\\log_skeleton\\variants\\classic.py'>>, parameters=None)[source]

Discover a log skeleton from an event log

Parameters
  • log – Event log

  • variant – Variant of the algorithm, possible values: - Variants.CLASSIC

  • parameters

    Parameters of the algorithm, including:
    • the activity key (Parameters.ACTIVITY_KEY)

    • the noise threshold (Parameters.NOISE_THRESHOLD)

Returns

Log skeleton model

Return type

model

pm4py.algo.discovery.log_skeleton.algorithm.apply_from_variants_list(var_list, variant=<Variants.CLASSIC: <module 'pm4py.algo.discovery.log_skeleton.variants.classic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\algo\\discovery\\log_skeleton\\variants\\classic.py'>>, parameters=None)[source]

Discovers the log skeleton from the variants list

Parameters
  • var_list – Variants list

  • variant – Variant of the algorithm, possible values: - Variants.CLASSIC

  • parameters – Parameters

Returns

Log skeleton model

Return type

model

pm4py.algo.discovery.log_skeleton.outputs module

class pm4py.algo.discovery.log_skeleton.outputs.Outputs(value)[source]

Bases: enum.Enum

An enumeration.

ACTIV_FREQ = 'activ_freq'
ALWAYS_AFTER = 'always_after'
ALWAYS_BEFORE = 'always_before'
DIRECTLY_FOLLOWS = 'directly_follows'
EQUIVALENCE = 'equivalence'
NEVER_TOGETHER = 'never_together'

pm4py.algo.discovery.log_skeleton.parameters module

class pm4py.algo.discovery.log_skeleton.parameters.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
CASE_ID_KEY = 'case_id_glue'
CONSIDERED_CONSTRAINTS = 'considered_constraints'
DEFAULT_CONSIDERED_CONSTRAINTS = ['equivalence', 'always_after', 'always_before', 'never_together', 'directly_follows', 'activ_freq']
NOISE_THRESHOLD = 'noise_threshold'
PARAMETER_VARIANT_DELIMITER = 'variant_delimiter'

pm4py.algo.discovery.log_skeleton.trace_skel module

pm4py.algo.discovery.log_skeleton.trace_skel.activ_freq(trace)[source]

Gets the frequency of activities happening in a trace

Parameters

trace – List activities

Returns

Frequency of activities

Return type

freq

pm4py.algo.discovery.log_skeleton.trace_skel.after(trace)[source]

Get the after- relations given a list of activities

Parameters

trace – List activities

Returns

After- inside the trace

Return type

rel

pm4py.algo.discovery.log_skeleton.trace_skel.before(trace)[source]

Get the before- relations given a list of activities

Parameters

trace – List activities

Returns

Before- inside the trace

Return type

rel

pm4py.algo.discovery.log_skeleton.trace_skel.combos(trace)[source]

Get the combinations between all the activities of the trace relations given a list of activities

Parameters

trace – List activities

Returns

Combos inside the trace

Return type

rel

pm4py.algo.discovery.log_skeleton.trace_skel.directly_follows(trace)[source]

Get the directly-follows relations given a list of activities

Parameters

trace – List activities

Returns

Directly-follows relations inside the trace

Return type

rel

pm4py.algo.discovery.log_skeleton.trace_skel.equivalence(trace)[source]

Get the equivalence relations given a list of activities

Parameters

trace – List activities

Returns

Relations inside the trace

Return type

rel

pm4py.algo.discovery.log_skeleton.trace_skel.get_trace_info(trace)[source]

Technical method for conformance checking

Module contents