Skip to content

Update gym to v0.26.1 #2069

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .jenkins/validate_tutorials_built.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
NOT_RUN = [
"basics/intro", # no code
"translation_transformer",
"mario_rl_tutorial.py", # needs to be updated to work with gym 0.26
"profiler",
"saving_loading_models",
"introyt/captumyt",
Expand Down
6 changes: 4 additions & 2 deletions intermediate_source/mario_rl_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@
# 1. jump right
env = JoypadSpace(env, [["right"], ["right", "A"]])

action = env.action_space.sample()

env.reset()
next_state, reward, done, info = env.step(action=0)
print(f"{next_state.shape},\n {reward},\n {done},\n {info}")
obs, reward, terminated, truncated, info = env.step(action)
print(f"{obs.shape},\n {reward},\n {terminated},\n {truncated},\n {info}")


######################################################################
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ scikit-image
scipy
pillow==9.0.1
wget
gym==0.25.1
gym==0.26.1
gym-super-mario-bros==7.4.0
timm
pygame==2.1.2