google / ml-fairness-gym

Apache License 2.0
311 stars 79 forks source link

Assertion Error when running quickstart example #19

Open Mahinkana opened 2 years ago

Mahinkana commented 2 years ago

I get the following error when trying to run the example: AssertionError: Observation {'bank_cash': array(10001.), 'applicant_features': array([0, 1, 0, 0, 0, 0, 0], dtype=int32), 'group': array([1., 0.])} is not contained in self.observation_space In call to configurable 'run_simulation' (<function run_simulation at 0x7fa07162a440>)

all the requirements should be installed, however I get a few failed tests when running ./tests.sh

Any help appreciated

Mahinkana commented 2 years ago

It seems like a lot of errors are connected to incorrect versions of the requirements in requirements.txt being used, since no versions were specified. Is it possible to get information on which versions were used when building ml-fairness-gym, so it can be replicated? Thank you!

jackblandin commented 2 years ago

The commit yesterday fixes this error. Running pip install -r requirements.txt should fix the above error after you pull the latest changes.