nonconformist.nc
.ClassificationErrFunc¶
-
class
nonconformist.nc.
ClassificationErrFunc
¶ Base class for classification model error functions.
-
__init__
()¶
-
apply
(prediction, y)¶ Apply the nonconformity function.
Parameters: prediction : numpy array of shape [n_samples, n_classes]
Class probability estimates for each sample.
y : numpy array of shape [n_samples]
True output labels of each sample.
Returns: nc : numpy array of shape [n_samples]
Nonconformity scores of the samples.
-