# pm4py.evaluation.precision package

## pm4py.evaluation.precision.evaluator module

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.evaluation.precision.evaluator.Variants(value)[source]

Bases: enum.Enum

An enumeration.

ALIGN_ETCONFORMANCE = <module 'pm4py.evaluation.precision.variants.align_etconformance' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\evaluation\\precision\\variants\\align_etconformance.py'>
ETCONFORMANCE_TOKEN = <module 'pm4py.evaluation.precision.variants.etconformance_token' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\evaluation\\precision\\variants\\etconformance_token.py'>
pm4py.evaluation.precision.evaluator.apply(log, net, marking, final_marking, parameters=None, variant=None)[source]

Method to apply ET Conformance

Parameters
• log – Trace log

• net – Petri net

• marking – Initial marking

• final_marking – Final marking

• parameters

Parameters of the algorithm, including:

pm4py.util.constants.PARAMETER_CONSTANT_ACTIVITY_KEY -> Activity key

• variant

Variant of the algorithm that should be applied:
• Variants.ETCONFORMANCE_TOKEN

• Variants.ALIGN_ETCONFORMANCE

Deprecated since version 2.2.5: This will be removed in 3.0. Use the pm4py.algo.evaluation.precision package

## pm4py.evaluation.precision.parameters module

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.evaluation.precision.parameters.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
CLEANING_TOKEN_FLOOD = 'cleaning_token_flood'
SHOW_PROGRESS_BAR = 'show_progress_bar'
TOKEN_REPLAY_VARIANT = 'token_replay_variant'

## pm4py.evaluation.precision.utils module

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/>.

pm4py.evaluation.precision.utils.form_fake_log(prefixes_keys, activity_key='concept:name')[source]

Form fake log for replay (putting each prefix as separate trace to align)

Parameters
• prefixes_keys – Keys of the prefixes (to form a log with a given order)

• activity_key – Activity key (must be provided if different from concept:name)

pm4py.evaluation.precision.utils.get_log_prefixes(log, activity_key='concept:name')[source]

Get log prefixes

Parameters
• log – Trace log

• activity_key – Activity key (must be provided if different from concept:name)