This is the implementation of the FCGP method proposed in the paper "Fairness improvement for black-box classifiers with Gaussian process", Information Sciences journal: https://www.sciencedirect.com/science/article/abs/pii/S0020025521006861
Most machine learning models (classifiers) mainly focus on maximizing the classification accuracy. However, in many real-world applications it is the fairness, not the accuracy, of the classifier that is the crucial factor. People often wish to deploy a machine learning model that offers unbiased predictions in sensitive applications e.g. resume screening or loan approval.
We propose to use Gaussian process (GP) to improve fairness while maintaining high accuracy of the pre-trained classifier. The main idea is that we first train a GP regression to approximate the predictions of the pre-trained classifier. We then adjust the GP regression via its noise variance to achieve two goals: (1) maximize the fairness and (2) minimize the difference between the GP regression and the pre-trained classifier. Our method is an unsupervised post-processing approach.
- Python 3.6
- numpy 1.18
- scikit-learn 0.23
- scipy 1.1
- keras 2.2.4
- tensorflow 1.10
- pandas 0.24
- matplotlib 2.2.3
- seaborn 0.11
- Train the pre-trained classifier: 1_initial.bat
- Run the Random baseline: 2_random.bat
- Run the ROC baseline: 3_roc.bat
- Run the IGD baseline: 4_igd.bat
- Run the FCGP-S method: 5_fcgp_s.bat
- Run the FCGP-L method: 6_fcgp_l.bat
- Visualize the results: 7_plot_result.bat
Dang Nguyen, Sunil Gupta, Santu Rana, Alistair Shilton, Svetha Venkatesh (2021). Fairness Improvement for Black-box Classifiers with Gaussian Process. Information Sciences, 576, 542-556