-
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
Make a copy of current env #1292
Comments
Hmm, why are you trying to make a copy of it? |
Because I am using the Monte Carlo tree search as the search algorithm. In tree search, It is necessary to make a replica of current state for tree expansion. |
I'm afraid we don't really support that, and LunarLander is unlikely to work because it uses Box2D which may have its own internal state. Closing as a duplicate of #402 |
Thank you for your reply. But I think there must be some way to control its internal state since it have a reset method to reset state. so if the code can "reset with given state", we can simply make a new game and load that state to make a copy. |
I tried use copy.deepcopy to make a copy of LunarLander-v2 environment , but it does not works. The return value of gym.step with same action are different between original environment and the copied one. Anyone who know the right way to copy the LunarLander-v2 gym[box2d] environment ?
The text was updated successfully, but these errors were encountered: