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

Issue 265 privileged class bank dataset #449

Closed joosjegoedhart closed 1 year ago

joosjegoedhart commented 1 year ago

Closes #265

Changes:

@hoffmansc or @nrkarthikeyan

joosjegoedhart commented 1 year ago

@hoffmansc please review :)

joosjegoedhart commented 1 year ago

For test_standard_datasets.py::test_bank_priviliged_attributes

E FileNotFoundError: [Errno 2] No such file or directory: 'aif360/data/raw/bank/bank-additional-full.csv’.I keep on getting errors here. It seems because os.chdir() in notebook_runner.py() sets the working directory of the entire test process process to …AIF360/examples.

I fixed this issue by resetting the path in tests/notebook_runner.py