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

A bug in exponentiated_gradient_reduction.py #280

Closed haewon55 closed 2 years ago

haewon55 commented 2 years ago

drop_prot_attr doesn't work for the reductions method because of the bug in the predict_proba function.

The line 148: X = X.drop(self.prot_attr)

should be updated to: X = X.drop(self.prot_attr, axis=1)

hoffmansc commented 2 years ago

Closed by #268