Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the detailed info of env? #758

Closed
inksci opened this issue Oct 23, 2017 · 6 comments
Closed

How to get the detailed info of env? #758

inksci opened this issue Oct 23, 2017 · 6 comments

Comments

@inksci
Copy link

inksci commented Oct 23, 2017

For example, the env 'Pendulum-v0', I can print its observation, action with python:

observation: [ 0.452032    0.89200172  0.91324294]
action: [ 0.19525402]

BUT what are the meaning of these data? What they represent for?
Any information is welcome!

@FirefoxMetzger
Copy link
Contributor

The meaning of the observation is unique to each environment and is not further specified by the gym framework. So where to get the info depends on the individual environment.
The info field might be useful for additional information, though I find it's rarely used.

Some environments are documented in this repo's wiki. If the environment comes from outside of gym, check their docs.
Otherwise your out of luck and have to stick to reading the source code, google and perhaps a lucky blog post. But don't worry, it's python and the API isn't to complex so it should be fairly straight forward.

@inksci
Copy link
Author

inksci commented Oct 23, 2017

@FirefoxMetzger
Thank for your answer, which is helpful.
Moreover, if there is a web page introducing all the information of env within gym, the people who use gym will feel easier for their work.

@ImpulseAdventure
Copy link

In the case of Pendulum-v0 you can find some details on the observation and action spaces here:
https://github.com/openai/gym/wiki/Pendulum-v0

@madvn
Copy link
Contributor

madvn commented Nov 2, 2017

See #106

@inksci
Copy link
Author

inksci commented Nov 3, 2017

@ImpulseAdventure That is the perfect example what I want.

@christopherhesse
Copy link
Contributor

Thanks for answering this @ImpulseAdventure, this is not documented for most environments, though you can often figure out from the code what the observations and actions are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants