Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: threshold optimizer with relaxed fairness constraint fulfillment #1248

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft
11 changes: 10 additions & 1 deletion docs/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -425,4 +425,13 @@ @article{yeh2009comparisons
@misc{uscode2011title15chapter41subchapteriv,
title={United States Code 2011 Edition - Title 15 Commerce and Trade - Chapter 41 Consumer Credit Protection - Subchapter IV—Equal Credit Opportunity},
url={https://www.govinfo.gov/content/pkg/USCODE-2011-title15/html/USCODE-2011-title15-chap41-subchapIV.htm}
}
}

@misc{cruz2023unprocessing,
title={Unprocessing Seven Years of Algorithmic Fairness},
author={Andr\'{e} F. Cruz and Moritz Hardt},
year={2023},
eprint={2306.07261},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
4 changes: 4 additions & 0 deletions fairlearn/postprocessing/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"Please make sure to install fairlearn[customplots] to use "
"the postprocessing plots."
)
_CVXPY_IMPORT_ERROR_MESSAGE = (
"Please make sure to install `cvxpy` to use postprocessing with relaxed "
"fairness constraint fulfillment."
)
BASE_ESTIMATOR_NONE_ERROR_MESSAGE = "The base estimator cannot be `None`."
BASE_ESTIMATOR_NOT_FITTED_WARNING = (
"The value of `prefit` is `True`, but `check_is_fitted` raised `NotFittedError` on"
Expand Down