AIF360
AIF360 copied to clipboard
Integrating FairXplainer with AIF360
Two files are added to integrate FairXplainer.
- aif360/sklearn/explainers/bias_explainer.py
- examples/sklearn/demo_bias_explaination.ipynb
(1) contains the interface to call FairXplainer from AIF360 and (2) provides a notebook demonstration.
Hi @mnagired,
I have added descriptions of explanations according to your suggestion. Hope this addresses your question.
Best regards, Bishwa
@hoffmansc, this PR looks good to me. Please have a look whenever you get a chance :)
Hi @hoffmansc
I have addressed your comments. The summary of changes are:
- pytest added for bias explanation.
- FairXplainer returns explanation results without bias value. Bias values can be computed by existing metric in aif360, as demonstrated in the notebook for statistical parity and equalized odds. However, I have not been able to compute predictive parity (sufficiency metric) using aif360. Therefore, I have added an optional argument "return_bias", which is by default False. If "return_bias=True", the bias computed by FairXplainer is additionally returned.
- Other comments are addressed to my best efforts.
Thanks, Bishwa