Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion Error when running quickstart example #19

Open
Mahinkana opened this issue Nov 19, 2021 · 2 comments
Open

Assertion Error when running quickstart example #19

Mahinkana opened this issue Nov 19, 2021 · 2 comments

Comments

@Mahinkana
Copy link

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

  • some undefined metric warnings: UndefinedMetricWarning: No positive samples in y_true, true positive value should be meaningless
  • AssertionErrors as in the example.
    image

Any help appreciated

@Mahinkana
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants