-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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 configure the cartpole environment such that it is not capped at 200? #463
Comments
After creating the environment, you can change the limit:
|
You can also create your own environment. Look in
You can define a new one in the same spirit:
|
Hi, env = gym.make('MountainCar-v0') But it still remain capped at 200. |
You need to create a new env with a different name. For example:
|
Thanks, one of the ways worked. I edited 'init.py' under 'gym/envs/' to increase the maximum allowed steps in an episode.
So I checked the 'mountain_car.py' under 'gym/envs/classic_control/' and I really didn't find anything that limits the upper bound on the size of the episodes. |
It might be injected into the object by other means. Remember: this is Python. 😂 |
@hholst80 , Yes, I agree. But, I stopped looking for efficient ways, once I found an inefficient solution that worked. |
With and it worked. |
No description provided.
The text was updated successfully, but these errors were encountered: