-
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
Version v0.25.0 release #2949
Merged
Merged
Version v0.25.0 release #2949
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… to fix bug if environment doesn't use np_random in reset
…n the opposite case than was intended to (openai#2871)" This reverts commit 519dfd9.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release notes
API Changes
Step
- A majority of deep reinforcement learning algorithm implementations are incorrect due to an important difference in theory and practice asdone
is not equivalent totermination
. As a result, we have modified thestep
function to return five values,obs, reward, termination, truncation, info
. The full theoretical and practical reason (along with example code changes) for these changes will be explained in a soon-to-be-released blog post. The aim for the change to be backward compatible (for now), for issues, please put report the issue on github or the discord. @arjun-kgRender
- The render API is changed such that the mode has to be specified duringgym.make
with the keywordrender_mode
, after which, the render mode is fixed. For further details see https://younis.dev/blog/2022/render-api/ and Render API #2671. This has the additional changesrender_mode="human"
you don't need to call .render(), rendering will happen automatically onenv.step()
render_mode="rgb_array"
,.render()
pops the list of frames rendered since the last.reset()
render_mode="single_rgb_array"
,.render()
returns a single frame, like before.Space.sample(mask=...)
allows a mask when sampling actions to enable/disable certain actions from being randomly sampled. We recommend developers add this to theinfo
parameter returned byreset(return_info=True)
andstep
. See Added Action masking for Space.sample() #2906 for example implementations of the masks or the individual spaces. We have added an example version of this in the taxi environment. @pseudo-rnd-thoughtsGraph
for environments that use graph style observation or action spaces. Currently, the node and edge spaces can only beBox
orDiscrete
spaces. @jjshootsText
space for Reinforcement Learning that involves communication between agents and have dynamic length messages (otherwiseMultiDiscrete
can be used). @ryanrudes @pseudo-rnd-thoughtsBug fixes
gym.make("CarRacing-v2", continuous=False)
@araffinv0.24.0
,opencv-python
was an accidental requirement for the project. This has been reverted. @KexianShen @pseudo-rnd-thoughtsutils.play
such that if the environment specifieskeys_to_action
, the function will automatically use that data. @Markus28Misc
Box
space shape inference is allowshigh
andlow
scalars to be automatically set to(1,)
shape. Minor changes to identifying scalars. @pseudo-rnd-thoughtsRecordVideo
wrapper is becoming deprecated with no support forTextEncoder
with the new render API. The plan is to replaceRecordVideo
with a single function that will receive a list of frames from an environment and automatically render them as a video usingMoviePy
. @johnMinellipy.Dockerfile
is optimised from 2Gb to 1.5Gb through a number of optimisations @TheDen