Commit ac411b55 authored by Thibault Hallouin's avatar Thibault Hallouin
Browse files

wrap calculation of probabilistic scores into a single function

The purpose of such refactoring is to allow for a "memoisation" approach
(i.e. avoid re-computing the same elements/metrics multiple times).

By redefining the API as a one-entry point function `evaluate`
(as opposed to calling each metric in turn), it makes it possible to
know in advance the metrics required by the user, and by keeping a
register (hard coded for now) of what unitary computation elements
each metric requires, and which metrics are nested in other metrics,
it is possible to avoid computation repetitions.
parent edb18481
No related merge requests found
Showing with 544 additions and 371 deletions
+544 -371
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment