pm4py.algo.conformance.tokenreplay package#
PM4Py – A Process Mining Library for Python
Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
Subpackages#
- pm4py.algo.conformance.tokenreplay.diagnostics package
- pm4py.algo.conformance.tokenreplay.variants package
- Submodules
- pm4py.algo.conformance.tokenreplay.variants.backwards module
Parameters
Parameters.CASE_ID_KEY
Parameters.ACTIVITY_KEY
Parameters.PARAMETER_VARIANT_DELIMITER
Parameters.VARIANTS
Parameters.PLACES_SHORTEST_PATH_BY_HIDDEN
Parameters.THREAD_MAX_EX_TIME
Parameters.DISABLE_VARIANTS
Parameters.CLEANING_TOKEN_FLOOD
Parameters.IS_REDUCTION
Parameters.WALK_THROUGH_HIDDEN_TRANS
Parameters.RETURN_NAMES
Parameters.STOP_IMMEDIATELY_UNFIT
Parameters.TRY_TO_REACH_FINAL_MARKING_THROUGH_HIDDEN
Parameters.CONSIDER_REMAINING_IN_FITNESS
Parameters.ENABLE_PLTR_FITNESS
get_bmap()
diff_mark()
explore_backwards()
execute_tr()
tr_vlist()
apply()
get_diagnostics_dataframe()
- pm4py.algo.conformance.tokenreplay.variants.token_replay module
Parameters
Parameters.CASE_ID_KEY
Parameters.ACTIVITY_KEY
Parameters.PARAMETER_VARIANT_DELIMITER
Parameters.VARIANTS
Parameters.PLACES_SHORTEST_PATH_BY_HIDDEN
Parameters.THREAD_MAX_EX_TIME
Parameters.DISABLE_VARIANTS
Parameters.CLEANING_TOKEN_FLOOD
Parameters.IS_REDUCTION
Parameters.WALK_THROUGH_HIDDEN_TRANS
Parameters.RETURN_NAMES
Parameters.STOP_IMMEDIATELY_UNFIT
Parameters.TRY_TO_REACH_FINAL_MARKING_THROUGH_HIDDEN
Parameters.CONSIDER_REMAINING_IN_FITNESS
Parameters.CONSIDER_ACTIVITIES_NOT_IN_MODEL_IN_FITNESS
Parameters.ENABLE_PLTR_FITNESS
Parameters.SHOW_PROGRESS_BAR
TechnicalParameters
TechnicalParameters.MAX_REC_DEPTH
TechnicalParameters.MAX_IT_FINAL1
TechnicalParameters.MAX_IT_FINAL2
TechnicalParameters.MAX_REC_DEPTH_HIDTRANSENABL
TechnicalParameters.MAX_POSTFIX_SUFFIX_LENGTH
TechnicalParameters.MAX_NO_THREADS
TechnicalParameters.MAX_DEF_THR_EX_TIME
TechnicalParameters.ENABLE_POSTFIX_CACHE
TechnicalParameters.ENABLE_MARKTOACT_CACHE
DebugConst
NoConceptNameException
add_missing_tokens()
get_consumed_tokens()
get_produced_tokens()
merge_dicts()
get_places_with_missing_tokens()
get_hidden_transitions_to_enable()
get_req_transitions_for_final_marking()
enable_hidden_transitions()
apply_hidden_trans()
break_condition_final_marking()
apply_trace()
ApplyTraceTokenReplay
PostFixCaching
MarkingToActivityCaching
get_variant_from_trace()
transcribe_result()
apply_log()
apply()
apply_variants_list()
apply_variants_dictionary()
apply_variants_list_petri_string()
apply_variants_list_petri_string_multiprocessing()
get_diagnostics_dataframe()
Submodules#
pm4py.algo.conformance.tokenreplay.algorithm module#
PM4Py – A Process Mining Library for Python
Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program 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 Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
- class pm4py.algo.conformance.tokenreplay.algorithm.Variants(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
- TOKEN_REPLAY = <module 'pm4py.algo.conformance.tokenreplay.variants.token_replay' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\conformance\\tokenreplay\\variants\\token_replay.py'>#
- BACKWARDS = <module 'pm4py.algo.conformance.tokenreplay.variants.backwards' from 'C:\\Users\\berti\\pm4py-core\\pm4py\\algo\\conformance\\tokenreplay\\variants\\backwards.py'>#
- pm4py.algo.conformance.tokenreplay.algorithm.apply(log: EventLog | EventStream | DataFrame, net: PetriNet, initial_marking: Marking, final_marking: Marking, parameters: Dict[Any, Any] | None = None, variant=Variants.TOKEN_REPLAY) List[Dict[str, Any]] [source]#
Method to apply token-based replay
Parameters#
- log
Log
- net
Petri net
- initial_marking
Initial marking
- final_marking
Final marking
- parameters
- Parameters of the algorithm, including:
Parameters.ACTIVITY_KEY -> Activity key
- variant
- Variant of the algorithm to use:
Variants.TOKEN_REPLAY
Variants.BACKWARDS
- pm4py.algo.conformance.tokenreplay.algorithm.get_diagnostics_dataframe(log: EventLog | EventStream | DataFrame, tbr_output: List[Dict[str, Any]], variant=Variants.TOKEN_REPLAY, parameters: Dict[Any, Any] | None = None) DataFrame [source]#
Gets the results of token-based replay in a dataframe
Parameters#
- log
Event log
- tbr_output
Output of the token-based replay technique
- variant
- Variant of the algorithm to use:
Variants.TOKEN_REPLAY
Variants.BACKWARDS
Returns#
- dataframe
Diagnostics dataframe