Trusted-AI / AIF360

A comprehensive set of fairness metrics for datasets and machine learning models, explanations for these metrics, and algorithms to mitigate bias in datasets and models.
https://aif360.res.ibm.com/
Apache License 2.0
2.46k stars 840 forks source link

adversarial debiasing (Updated) #277

Open giandos200 opened 3 years ago

giandos200 commented 3 years ago

Following the paper "Mitigating Unwanted Biases with adversarial learning", i've added the pretraining of both the Network (Classifier and Adversarial one). I've also tried to update the adversary_loss_weight as sqrt(epoch) but the result same to be not effective, so i left constant the value of 0.1. However, with the Pretraining methodologies with all the dataset (German,Compas, Adult) the Fairness Metric have generally a relevant improvement (DI from 0.58 to 0.96 in adult, german['sex'] from 1.34 to 1, compass['sex'] from 0.75 to 0.76). Of course for each dataset should be done a Hyperparameter tuning for achieving best result. Furthermore, the code has been migrated to TF2. resolve #276

lgtm-com[bot] commented 3 years ago

This pull request introduces 1 alert when merging 00eacb01091136d6dfd17803615a5645485c27e8 into a5dac73786265415138ed6e2f8c926d9ee968ee5 - view on LGTM.com

new alerts:

lgtm-com[bot] commented 2 years ago

This pull request introduces 4 alerts when merging 1999fa344eaeedb337945acbbd52bb4102798752 into 963df2e4eea807bd5765fee9f1c594500bdcbb5b - view on LGTM.com

new alerts: