API reference

error_parity.threshold_optimizer

Solver for the relaxed equal odds problem.

error_parity.pareto_curve

Utils for computing the fairness-accuracy Pareto frontier of a classifier.

error_parity.plotting

Utils for plotting postprocessing frontier and postprocessing solution.

error_parity.evaluation

A set of functions to evaluate predictions on common performance and fairness metrics, possibly at a specified FPR or FNR target.

error_parity.binarize

Module to binarize continuous-score predictions.

error_parity.classifiers

Helper functions to construct and use randomized classifiers.

error_parity.cvxpy_utils

A set of helper functions for using cvxpy.

error_parity.roc_utils

Helper functions to solve the relaxed equal odds problem.