Gym: What's the meaning of the input of CartPole observation space?

Created on 7 Jul 2016  路  4Comments  路  Source: openai/gym

Hello, all, i'm newbie to gym.
I print out the env.observation_space.shape[0], and it equals 4(CartPole-v0 env), so What's the meaning of this 4 numbers,? i cannot found the doc which describe it.( i think it may include the position of cart, the angle of the pole, the speed of the cart and the speed of the pole.)
Thanks!

Most helpful comment

Good general-purpose agents don't need to know the semantics of the observations: they can learn how to map observations to actions to maximize reward without any prior knowledge.

That said, it's:
[position of cart, velocity of cart, angle of pole, rotation rate of pole]. Defined at https://github.com/openai/gym/blob/master/gym/envs/classic_control/cartpole.py#L75

All 4 comments

Good general-purpose agents don't need to know the semantics of the observations: they can learn how to map observations to actions to maximize reward without any prior knowledge.

That said, it's:
[position of cart, velocity of cart, angle of pole, rotation rate of pole]. Defined at https://github.com/openai/gym/blob/master/gym/envs/classic_control/cartpole.py#L75

great!

Is there a documentation which explains what the gym observation is returning. Please Share a Link.

Some of the environments are described in further detail in the wiki. This includes explanations of what the observations contain.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Spiral-Galaxy picture Spiral-Galaxy  路  3Comments

Gawne picture Gawne  路  4Comments

mdavis-xyz picture mdavis-xyz  路  3Comments

cpatyn picture cpatyn  路  4Comments

RuofanKong picture RuofanKong  路  4Comments