Open Deathn0t opened 2 years ago
Hello,
In a new gym version a checker is implemented which causes this error while trying to access to observation_space
which changes in each reset (Because the loss feature is per data point and its size depends on the batch size which is an instance variable). You can bypass this error if you don't relly on observation_space
variable by using env = gym.make("sgd-v0", disable_env_checker=True)
. If your optimizer needs the observation_space
variable, you can implement an ObservationWrapper
to transform the observation to a fixed value (for example mean of loss feature) and set observation_space
accordingly. You will still need to create the environment with disable_env_checker=True
Thank you @goktug97 I will try this.
Hello,
I cloned the repos of the competition and tried running the base example loop from the readme which is:
but the following exception is raised: