chemicalchecker.tool.targetmate.nonconformist.evaluation.class_one_err_one_class

class_one_err_one_class(prediction, y, significance, c=0)[source]

Calculates the error rate of conformal classifier predictions containing only a single output label. Considers only test examples belonging to class c. Use functools.partial in order to test other classes.