Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Assertion Error when running quickstart example #19

Description

@Mahinkana

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

Activity

  1. Mahinkana commented on Nov 23, 2021

    @Mahinkana
    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!

  2. jackblandin commented on Feb 5, 2022

    @jackblandin

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions