You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in the comment from the source code, the max cart position is 2.4.
This is the termination criteria, and it's not the observation upper bound.
Am I right?
Observation:
Type: Box(4)
Num Observation Min Max
0 Cart Position -2.4 2.4
1 Cart Velocity -Inf Inf
2 Pole Angle ~-41.8° ~41.8°
3 Pole Velocity At Tip -Inf Inf
Correct, the episode is considered terminated when absolute value of position is above 2.4 or absolute value of angle is above 12 degrees. I'll update the docs, thanks for pointing that out
I got 4.8 from the following code. It means the max cart position is 4.8
But in the comment from the source code, the max cart position is 2.4.
This is the termination criteria, and it's not the observation upper bound.
Am I right?
Source code
https://github.com/openai/gym/blob/master/gym/envs/classic_control/cartpole.py#L24
One more thing, the observation space of angle is 24° from line 67 & 74.
https://github.com/openai/gym/blob/master/gym/envs/classic_control/cartpole.py#L67
https://github.com/openai/gym/blob/master/gym/envs/classic_control/cartpole.py#L74
The text was updated successfully, but these errors were encountered: