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 can I discretize an observation_space=Box(128, 128, 3) using DiscretizedObservationWrapper class? please explain with example!! #1

Open
skmalviya opened this issue Sep 25, 2020 · 1 comment

Comments

@skmalviya
Copy link

No description provided.

@ngc92
Copy link
Owner

ngc92 commented Oct 11, 2020

Its been quite some time since I've worked on this library. If you have a gym environment env with a bounded, continuous observation space, then in order to get a discrete version you have to create a new environment as

discrete = space_wrappers.DiscretizedObservationWrapper(env, steps)

where steps is the number of discrete steps you want. For a Box environment, you can also specify a separate number of steps for each dimension.

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

2 participants