pm4py.algo.conformance.alignments.petri_net.utils package¶
Submodules¶
pm4py.algo.conformance.alignments.petri_net.utils.log_enrichment 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.alignments.petri_net.utils.log_enrichment.Parameters[source]¶ Bases:
enum.EnumAn enumeration.
-
ENABLE_DEEPCOPY= 'enable_deepcopy'¶
-
TARGET_ATTRIBUTE= 'target_attribute'¶
-
-
pm4py.algo.conformance.alignments.petri_net.utils.log_enrichment.apply(log: pm4py.objects.log.obj.EventLog, aligned_traces: List[Dict[str, Any]], parameters: Optional[Dict[Union[str, pm4py.algo.conformance.alignments.petri_net.utils.log_enrichment.Parameters], Any]] = None) → pm4py.objects.log.obj.EventLog[source]¶ Enriches a log with the results of the alignment against a model, obtained with the parameter ‘ret_tuple_as_trans_desc’ set to True (so the identifiers of the transitions of the model are known). In particular, the events that are not move-on-log are enriched with the identifier of the corresponding element of the model.
Parameters: - log – Event log
- aligned_traces – Result of the alignments, done with the parameter ‘ret_tuple_as_trans_Desc_ set to True.
- parameters – Parameters of the algorithm: - Parameters.TARGET_ATTRIBUTE: attribute that should be used for the enrichment - Parameters.ENABLE_DEEPCOPY: deepcopy the event log to not enrich the original log.
Returns: Log enriched with an additional attribute (the identifier of the corresponding element of the model)
Return type: enriched_log
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/>.