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

Upgrade to latest "Gym" #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

markub3327
Copy link

Hello,

the Gym will be soon outdated. Gym since 2021 has moved all future development to Gymnasium. The small changes must be done:

AttributeError: 'EnvSpec' object has no attribute trials

Gymnasium hasn't trials parameter

_obs, reward, done, truncated, _ = env.step(action)

The new step() method has done parameter as end of the game and truncated parameter as the timeout for solving the game (not the end of episode).

obs, _ = env.reset()

The new reset() method has after obs param the info param similar to old step() method.

Thanks.

@markub3327 markub3327 changed the title Upgrade to latest libs Upgrade to latest "Gym" Feb 1, 2023
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

Successfully merging this pull request may close these issues.

1 participant