candle.uq_keras_utils.sparse_abstention_acc_metric#
- candle.uq_keras_utils.sparse_abstention_acc_metric(nb_classes)#
Abstained accuracy: Function to estimate accuracy over the predicted samples after removing the samples where the model is abstaining. Assumes y_true is not one-hot encoded.
- Parameters:
nb_classes (int or ndarray) – Integer or numpy array defining indices of the abstention class