pm4py.algo.conformance.footprints.variants package

Submodules

pm4py.algo.conformance.footprints.variants.log_extensive module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.algo.conformance.footprints.variants.log_extensive.ConfOutputs(value)[source]

Bases: enum.Enum

An enumeration.

END_ACTIVITIES = 'end_activities'
FOOTPRINTS = 'footprints'
IS_FOOTPRINTS_FIT = 'is_footprints_fit'
MIN_LENGTH_FIT = 'min_length_fit'
START_ACTIVITIES = 'start_activities'
class pm4py.algo.conformance.footprints.variants.log_extensive.Outputs(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITIES = 'activities'
ACTIVITIES_ALWAYS_HAPPENING = 'activities_always_happening'
DFG = 'dfg'
END_ACTIVITIES = 'end_activities'
MIN_TRACE_LENGTH = 'min_trace_length'
PARALLEL = 'parallel'
SEQUENCE = 'sequence'
SKIPPABLE = 'skippable'
START_ACTIVITIES = 'start_activities'
TRACE = 'trace'
pm4py.algo.conformance.footprints.variants.log_extensive.apply(log_footprints: Dict[str, Any], model_footprints: Dict[str, Any], parameters: Optional[Dict[Any, Any]] = None) Dict[str, Any][source]

Apply footprints conformance between a log footprints object and a model footprints object

Parameters
  • log_footprints – Footprints of the log (entire log)

  • model_footprints – Footprints of the model

  • parameters – Parameters of the algorithm

Returns

Dictionary containing all the violations

Return type

violations

pm4py.algo.conformance.footprints.variants.log_model module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.algo.conformance.footprints.variants.log_model.Outputs(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITIES = 'activities'
ACTIVITIES_ALWAYS_HAPPENING = 'activities_always_happening'
DFG = 'dfg'
END_ACTIVITIES = 'end_activities'
MIN_TRACE_LENGTH = 'min_trace_length'
PARALLEL = 'parallel'
SEQUENCE = 'sequence'
SKIPPABLE = 'skippable'
START_ACTIVITIES = 'start_activities'
TRACE = 'trace'
class pm4py.algo.conformance.footprints.variants.log_model.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

CASE_ID_KEY = 'pm4py:param:case_id_key'
STRICT = 'strict'
pm4py.algo.conformance.footprints.variants.log_model.apply(log_footprints: Union[Dict[str, Any], List[Dict[str, Any]]], model_footprints: Dict[str, Any], parameters: Optional[Dict[Union[str, pm4py.algo.conformance.footprints.variants.log_model.Parameters], Any]] = None) Union[List[Dict[str, Any]], Dict[str, Any]][source]

Apply footprints conformance between a log footprints object and a model footprints object

Parameters
  • log_footprints – Footprints of the log

  • model_footprints – Footprints of the model

  • parameters

    Parameters of the algorithm, including:
    • Parameters.STRICT => strict check of the footprints

Returns

Set of all the violations between the log footprints and the model footprints, OR list of case-per-case violations

Return type

violations

pm4py.algo.conformance.footprints.variants.log_model.apply_single(log_footprints: Dict[str, Any], model_footprints: Dict[str, Any], parameters: Optional[Dict[Union[str, pm4py.algo.conformance.footprints.variants.log_model.Parameters], Any]] = None) Dict[str, Any][source]

Apply footprints conformance between a log footprints object and a model footprints object

Parameters
  • log_footprints – Footprints of the log (NOT a list, but a single footprints object)

  • model_footprints – Footprints of the model

  • parameters

    Parameters of the algorithm, including:
    • Parameters.STRICT => strict check of the footprints

Returns

Set of all the violations between the log footprints and the model footprints

Return type

violations

pm4py.algo.conformance.footprints.variants.log_model.get_diagnostics_dataframe(log: pm4py.objects.log.obj.EventLog, conf_result: Union[List[Dict[str, Any]], Dict[str, Any]], parameters: Optional[Dict[Union[str, pm4py.algo.conformance.footprints.variants.log_model.Parameters], Any]] = None) pandas.core.frame.DataFrame[source]

Gets the diagnostics dataframe from the log and the results of footprints conformance checking (trace-by-trace)

Parameters
  • log – Event log

  • conf_result – Conformance checking results (trace-by-trace)

Returns

Diagnostics dataframe

Return type

diagn_dataframe

pm4py.algo.conformance.footprints.variants.trace_extensive module

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.algo.conformance.footprints.variants.trace_extensive.ConfOutputs(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITIES_ALWAYS_HAPPENING = 'activities_always_happening'
END_ACTIVITIES = 'end_activities'
FOOTPRINTS = 'footprints'
IS_FOOTPRINTS_FIT = 'is_footprints_fit'
MIN_LENGTH_FIT = 'min_length_fit'
START_ACTIVITIES = 'start_activities'
class pm4py.algo.conformance.footprints.variants.trace_extensive.Outputs(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITIES = 'activities'
ACTIVITIES_ALWAYS_HAPPENING = 'activities_always_happening'
DFG = 'dfg'
END_ACTIVITIES = 'end_activities'
MIN_TRACE_LENGTH = 'min_trace_length'
PARALLEL = 'parallel'
SEQUENCE = 'sequence'
SKIPPABLE = 'skippable'
START_ACTIVITIES = 'start_activities'
TRACE = 'trace'
class pm4py.algo.conformance.footprints.variants.trace_extensive.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

CASE_ID_KEY = 'pm4py:param:case_id_key'
ENABLE_ACT_ALWAYS_EXECUTED = 'enable_act_always_executed'
pm4py.algo.conformance.footprints.variants.trace_extensive.apply(log_footprints: List[Dict[str, Any]], model_footprints: Dict[str, Any], parameters: Optional[Dict[Union[str, pm4py.algo.conformance.footprints.variants.trace_extensive.Parameters], Any]] = None) List[Dict[str, Any]][source]

Apply footprints conformance between a log footprints object and a model footprints object

Parameters
  • log_footprints – Footprints of the log (trace-by-trace)

  • model_footprints – Footprints of the model

  • parameters – Parameters of the algorithm

Returns

List containing, for each trace, a dictionary containing the violations

Return type

violations

pm4py.algo.conformance.footprints.variants.trace_extensive.get_diagnostics_dataframe(log: pm4py.objects.log.obj.EventLog, conf_result: List[Dict[str, Any]], parameters: Optional[Dict[Union[str, pm4py.algo.conformance.footprints.variants.trace_extensive.Parameters], Any]] = None) pandas.core.frame.DataFrame[source]

Gets the diagnostics dataframe from the log and the results of footprints conformance checking (trace-by-trace)

Parameters
  • log – Event log

  • conf_result – Conformance checking results (trace-by-trace)

Returns

Diagnostics dataframe

Return type

diagn_dataframe

Module contents

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.