I would like to use the mdss_bias_scan function of aif360 for detecting the combination of variables that make up the privileged group and the non-privileged group.
When I try to import the function:
from aif360.sklearn.metrics import mdss_bias_scan
I get the following error:
Import error: cannot import 'mdss_bias_scan' from 'aif360.sklearn.metrics'.
Can you help me to fix it?
Update
The function
mdss_bias_scanis not available in the version ofaif360you're using (v0.4.0).Here's the source code of the file
metrics.pyat tagv0.4.0.The function
mdss_bias_scanwas added via this commit which has not yet been released.From the GitHub Source, it seems that you should import it as:
Also, make sure you have
aif360package installed in your Python environment. If not, install it using: