Giter Site home page Giter Site logo

rxian / fair-classification Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 2.0 2.52 MB

Post-processing for fair classification

Home Page: https://arxiv.org/abs/2405.04025

License: MIT License

Jupyter Notebook 99.03% Python 0.97%
classification fairness machine-learning

fair-classification's Introduction

Fair Classification via Post-Processing

A post-processing algorithm for fair classification applied to predictors of the form Pr(Y|X) and Pr(A|X), or Pr(A,Y|X), depending on the fairness criterion. Supports (multi-class) statistical parity, equal opportunity, and equalized odds, under the attribute-aware or attribute-blind setting.

See example.ipynb for a quick tutorial. To reproduce our results:

  • (arXiv 2024 preprint). See the notebooks adult.ipynb, compas.ipynb, acsincome2.ipynb, acsincome5.ipynb, and biasbios.ipynb.
  • (ICML 2023). Archived under the icml.23 tag, since the new version generalizes the algorithm for attribute-aware statistical parity.

LP solvers. Our algorithm involves solving linear programs, and they are set up in our code using the cvxpy package. For large-scale problems, we recommend the Gurobi optimizer for speed.

Citation

@misc{xian2024OptimalGroupFair,
  title         = {{Optimal Group Fair Classifiers from Linear Post-Processing}},
  author        = {Xian, Ruicheng and Zhao, Han},
  year          = {2024},
  archiveprefix = {arXiv},
  eprint        = {2405.04025},
  primaryclass  = {cs.LG}
}
@inproceedings{xian2023FairOptimalClassification,
  title     = {{Fair and Optimal Classification via Post-Processing}},
  booktitle = {{Proceedings of the 40th International Conference on Machine Learning}},
  author    = {Xian, Ruicheng and Yin, Lang and Zhao, Han},
  year      = {2023}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.