pm4py / pm4py-core

Public repository for the PM4Py (Process Mining for Python) project.
https://pm4py.fit.fraunhofer.de
GNU General Public License v3.0
722 stars 286 forks source link

pm4py.conformance.fitness_token_based_replay - Parameter 'consider_activities_not_in_model_in_fitness' #421

Closed WiedPakusa closed 1 year ago

WiedPakusa commented 1 year ago

TBR in pm4py seems to ignore all events that do not occur in the model. As an effect, traces with activities that are not in the model might be reported as fitting.

The parameter 'consider_activities_not_in_model_in_fitness' seems to control this behaviour. Unfortunately, it is impossible to set the parameter via the function pm4py.conformance.fitness_token_based_replay() since the keyword 'parameters' is missing. Moreover, if the parameter is set via an attribute of the log, then it gets lost in case that a diagnostics dataframe is returned (probably because of the conversion into the old log format).

fit-alessandro-berti commented 1 year ago

Dear @WiedPakusa

Thanks for signaling. We'll add support for optional parameters in the token-based replay exposed by the simplified interface.