jeffheaton / t81_558_deep_learning

T81-558: Keras - Applications of Deep Neural Networks @Washington University in St. Louis
https://sites.wustl.edu/jeffheaton/t81-558/
Other
5.72k stars 3.03k forks source link

suite_gym.load() #133

Closed annatn998 closed 2 years ago

annatn998 commented 2 years ago

I am trying to use:

suite_gym.load(env_name)

I can successfully use gym.make(env_name) so I know that the environment has successfully registered. However, when I call suite_gym.load() I get this value error:

The gym space None is currently not supported.
  In call to configurable 'wrap_env' (<function wrap_env at 0x7fb2f30b3550>)
  In call to configurable 'load' (<function load at 0x7fb2f30b35e0>)

I have tried so many different things and I'm really stuck. If you could help with this it would be really appreciated!

The notebook that has this issue: /t81_558_class_12_05_apply_rl.ipynb

annatn998 commented 2 years ago

I resolved it! So there was an issue with the self.observation_space variable in my environment class! So I fixed that and it no longer registers a None value. If you have this issue later on check to make sure you have a correct self.action_space() and self.observation_space()