Closed yjc765 closed 5 years ago
Hello, The answer is in the documentation: " HER requires the environment to inherits from gym.GoalEnv "
EDIT: cf source code: https://github.com/openai/gym/blob/master/gym/core.py#L156
Hello,
Thanks Araffin. How can I find out whether an environment inherits from gym.GoalEnv?
Obviously BitFlippingEnv does (as shown in the documentation) but most other Gym environments don't (well at least not the ones I tried: CartPole-v1, MountainCar-v0, Acrobot-v1, Pendulum-v0, MountainCarContinuous-v0)
How can I find out whether an environment inherits from gym.GoalEnv?
Because gym does not have a proper documentation, you have to look at the source code.
In practice, only the robotics
envs (FetchReach, PickAndPlace, ...) do, but you need a mujoco license for that.
The rule is gym.Env
, gym.GoalEnv
is the exception.
TLDR; "Difference in observation space type between gym.Env and gym.GoalEnv"
Hello, I have a problem when I tried to use DDPG + HER. The problem seems the definition of observation_space.
The model is:
and observation_space I defined is:
According to the error message, I need to add a attribute called 'space' to 'Box'? I'm confused. Could anyone help me with this problem?