Fairness in Classification
- Values: {
fairness
}
- Fairness type: { group fairness }
- Categories: { model-specific }
- Stage: { in-processing }
- Repository: https://github.com/mbilalzafar/fair-classification
- Tasks: { classification }
- Input data: { tabular }
- Licence: GNU General Public License v3
- Languages: { Python }
- References:
The not-so originally named “fairness in classification” provides a Python implementation of three fairness constraints for logistic regression:
- Disparate impact: similar acceptance rate for different demographic groups. See Zafar et al., 2017 a.
- Disparate mistreatment: similar misclassification rate for different demographic groups. See Zafar et al., 2017b
- Preference-based fairness (as opposed to parity-based fairness): a more game-theoretical approach where decision boundaries are chosen such that it can be shown that each group prefers its own decision boundary, if rational. See Zafar et al., 2017c.
This library is a good demo on how to implement fairness constraints from scratch, more than being a comprehensive fairness toolkit.