BaseDiscriminativePower#
- class scio.eval.BaseDiscriminativePower[source]#
Bases:
ParamClassBase class for discriminative power metrics.
Metrics used when thresholding score \(S\) with \(S\leqslant\tau\) for threshold \(\tau\). Positive examples should verify this inequality and thus have low score.
A discriminative power is defined through:
a computation procedure, from a
ROCinstance;optionally, parameters checks.
These should respectively been carried out in
from_roc()and_check_params()(see source code for examples).Discriminative power classes are paramclasses and hyperparameters are defined as their parameters.
Useful methods defined here
__call__(labels, scores)Compute discriminative power for given labels and scores.
from_roc(roc)Compute discriminative power from
ROC.