error_parity.classifiers

Helper functions to construct and use randomized classifiers.

Classes

BinaryClassifier(score_predictor, threshold)

Constructs a deterministic binary classifier, by thresholding a real-valued score predictor.

BinaryClassifierAtROCDiagonal([target_fpr, ...])

A dummy classifier whose predictions have no correlation with the input features, but achieves whichever target FPR or TPR you want (on ROC diag.)

Classifier()

EnsembleGroupwiseClassifiers(group_to_clf)

Constructs a classifier from a set of group-specific classifiers.

RandomizedClassifier(classifiers, probabilities)

Constructs a randomized classifier from the given classifiers and their probabilities.