ocpa.algo.conformance.precision_and_fitness package
Subpackages
Submodules
ocpa.algo.conformance.precision_and_fitness.evaluator module
- ocpa.algo.conformance.precision_and_fitness.evaluator.apply(ocel, ocpn, contexts=None, bindings=None)
Calculation precision and fitness for an object-centric Petri net with respect to an object-centric event log. The measures are calculated according to replaying the event log and checking enabled and executed behavior. Contexts and bindings can be pre-computed and passed to the method to save computation time upon multiple calling. If not given, contexts and binding wil be calculated.
- Parameters
ocel (
OCEL) – Object-centric event logocpn (
OCPN) – Object-centric Petri netcontexts (Dict) – multiset of previously executed traces of activities for each event (can be computed by calling
the corresponding function)bindings (Dict) – bindings for each event (can be computed by calling
the corresponding function)
- Returns
precision, fitness
- Return type
float, float
ocpa.algo.conformance.precision_and_fitness.utils module
- ocpa.algo.conformance.precision_and_fitness.utils.calculate_contexts_and_bindings(ocel)
- ocpa.algo.conformance.precision_and_fitness.utils.calculate_preset(eog)