I've used a Dict but the call of observation_space.shape returns None. With this none value I can't use tensorflow reinforcement learning algorithms. How can I handle the problem please? PS: I also use a custom gym env shown on this tutorial: https://www.gymlibrary.dev/content/environment_creation/
You will most likely need to flatten the observation, use the FlattenObservation wrapper to achieve this easily.
This should give you a Box space that will have a shape
Originally posted by @yangpeiren in https://github.com/openai/gym/issues/593#issuecomment-448345762
I've used a Dict but the call of observation_space.shape returns None. With this none value I can't use tensorflow reinforcement learning algorithms. How can I handle the problem please? PS: I also use a custom gym env shown on this tutorial: https://www.gymlibrary.dev/content/environment_creation/