0

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?

Amanda
  • 7
  • 1
  • 3

1 Answers1

1

Update

The function mdss_bias_scan is not available in the version of aif360 you're using (v0.4.0).

Here's the source code of the file metrics.py at tag v0.4.0.

The function mdss_bias_scan was added via this commit which has not yet been released.


From the GitHub Source, it seems that you should import it as:

from aif360.sklearn.metrics.metrics import mdss_bias_scan

Also, make sure you have aif360 package installed in your Python environment. If not, install it using:

pip install aif360
theoctober19th
  • 364
  • 3
  • 13