-
Notifications
You must be signed in to change notification settings - Fork 432
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
Simplify registration to NoFrameskip-v4 and v5 environments #561
Open
pseudo-rnd-thoughts
wants to merge
13
commits into
Farama-Foundation:master
Choose a base branch
from
pseudo-rnd-thoughts:simplify-registration
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Simplify registration to NoFrameskip-v4 and v5 environments #561
pseudo-rnd-thoughts
wants to merge
13
commits into
Farama-Foundation:master
from
pseudo-rnd-thoughts:simplify-registration
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
# Conflicts: # src/ale/python/registration.py
# Conflicts: # docs/_scripts/environment-docs.json # docs/_scripts/gen_environments_md.py # docs/environments/amidar.md # docs/environments/assault.md # docs/environments/asterix.md # docs/environments/asteroids.md # docs/environments/atlantis.md # docs/environments/atlantis2.md # docs/environments/backgammon.md # docs/environments/bank_heist.md # docs/environments/basic_math.md # docs/environments/battle_zone.md # docs/environments/beam_rider.md # docs/environments/berzerk.md # docs/environments/blackjack.md # docs/environments/bowling.md # docs/environments/boxing.md # docs/environments/breakout.md # docs/environments/carnival.md # docs/environments/casino.md # docs/environments/centipede.md # docs/environments/chopper_command.md # docs/environments/crazy_climber.md # docs/environments/crossbow.md # docs/environments/darkchambers.md # docs/environments/defender.md # docs/environments/demon_attack.md # docs/environments/donkey_kong.md # docs/environments/double_dunk.md # docs/environments/earthworld.md # docs/environments/elevator_action.md # docs/environments/enduro.md # docs/environments/entombed.md # docs/environments/et.md # docs/environments/fishing_derby.md # docs/environments/flag_capture.md # docs/environments/freeway.md # docs/environments/frogger.md # docs/environments/frostbite.md # docs/environments/galaxian.md # docs/environments/gopher.md # docs/environments/gravitar.md # docs/environments/hangman.md # docs/environments/haunted_house.md # docs/environments/hero.md # docs/environments/human_cannonball.md # docs/environments/ice_hockey.md # docs/environments/jamesbond.md # docs/environments/journey_escape.md # docs/environments/kaboom.md # docs/environments/kangaroo.md # docs/environments/keystone_kapers.md # docs/environments/king_kong.md # docs/environments/klax.md # docs/environments/koolaid.md # docs/environments/krull.md # docs/environments/kung_fu_master.md # docs/environments/laser_gates.md # docs/environments/lost_luggage.md # docs/environments/mario_bros.md # docs/environments/miniature_golf.md # docs/environments/montezuma_revenge.md # docs/environments/mr_do.md # docs/environments/ms_pacman.md # docs/environments/name_this_game.md # docs/environments/othello.md # docs/environments/pacman.md # docs/environments/phoenix.md # docs/environments/pitfall.md # docs/environments/pitfall2.md # docs/environments/pong.md # docs/environments/pooyan.md # docs/environments/private_eye.md # docs/environments/qbert.md # docs/environments/riverraid.md # docs/environments/road_runner.md # docs/environments/robotank.md # docs/environments/seaquest.md # docs/environments/sir_lancelot.md # docs/environments/skiing.md # docs/environments/solaris.md # docs/environments/space_invaders.md # docs/environments/space_war.md # docs/environments/star_gunner.md # docs/environments/superman.md # docs/environments/surround.md # docs/environments/tennis.md # docs/environments/tetris.md # docs/environments/tic_tac_toe_3d.md # docs/environments/time_pilot.md # docs/environments/trondead.md # docs/environments/turmoil.md # docs/environments/tutankham.md # docs/environments/up_n_down.md # docs/environments/venture.md # docs/environments/video_checkers.md # docs/environments/video_chess.md # docs/environments/video_cube.md # docs/environments/video_pinball.md # docs/environments/wizard_of_wor.md # docs/environments/word_zapper.md # docs/environments/yars_revenge.md # docs/environments/zaxxon.md
# Conflicts: # docs/_scripts/environment-docs.json # docs/_scripts/gen_environments_md.py # docs/environments.md # docs/environments/amidar.md # docs/environments/assault.md # docs/environments/asterix.md # docs/environments/asteroids.md # docs/environments/atlantis.md # docs/environments/atlantis2.md # docs/environments/backgammon.md # docs/environments/bank_heist.md # docs/environments/basic_math.md # docs/environments/battle_zone.md # docs/environments/beam_rider.md # docs/environments/berzerk.md # docs/environments/blackjack.md # docs/environments/bowling.md # docs/environments/boxing.md # docs/environments/breakout.md # docs/environments/carnival.md # docs/environments/casino.md # docs/environments/centipede.md # docs/environments/chopper_command.md # docs/environments/crazy_climber.md # docs/environments/crossbow.md # docs/environments/darkchambers.md # docs/environments/defender.md # docs/environments/demon_attack.md # docs/environments/donkey_kong.md # docs/environments/double_dunk.md # docs/environments/earthworld.md # docs/environments/elevator_action.md # docs/environments/enduro.md # docs/environments/entombed.md # docs/environments/et.md # docs/environments/fishing_derby.md # docs/environments/flag_capture.md # docs/environments/freeway.md # docs/environments/frogger.md # docs/environments/frostbite.md # docs/environments/galaxian.md # docs/environments/gopher.md # docs/environments/gravitar.md # docs/environments/hangman.md # docs/environments/haunted_house.md # docs/environments/hero.md # docs/environments/human_cannonball.md # docs/environments/ice_hockey.md # docs/environments/jamesbond.md # docs/environments/journey_escape.md # docs/environments/kaboom.md # docs/environments/kangaroo.md # docs/environments/keystone_kapers.md # docs/environments/king_kong.md # docs/environments/klax.md # docs/environments/koolaid.md # docs/environments/krull.md # docs/environments/kung_fu_master.md # docs/environments/laser_gates.md # docs/environments/lost_luggage.md # docs/environments/mario_bros.md # docs/environments/miniature_golf.md # docs/environments/montezuma_revenge.md # docs/environments/mr_do.md # docs/environments/ms_pacman.md # docs/environments/name_this_game.md # docs/environments/othello.md # docs/environments/pacman.md # docs/environments/phoenix.md # docs/environments/pitfall.md # docs/environments/pitfall2.md # docs/environments/pong.md # docs/environments/pooyan.md # docs/environments/private_eye.md # docs/environments/qbert.md # docs/environments/riverraid.md # docs/environments/road_runner.md # docs/environments/robotank.md # docs/environments/seaquest.md # docs/environments/sir_lancelot.md # docs/environments/skiing.md # docs/environments/solaris.md # docs/environments/space_invaders.md # docs/environments/space_war.md # docs/environments/star_gunner.md # docs/environments/superman.md # docs/environments/surround.md # docs/environments/tennis.md # docs/environments/tetris.md # docs/environments/tic_tac_toe_3d.md # docs/environments/time_pilot.md # docs/environments/trondead.md # docs/environments/turmoil.md # docs/environments/tutankham.md # docs/environments/up_n_down.md # docs/environments/venture.md # docs/environments/video_checkers.md # docs/environments/video_chess.md # docs/environments/video_cube.md # docs/environments/video_pinball.md # docs/environments/wizard_of_wor.md # docs/environments/word_zapper.md # docs/environments/yars_revenge.md # docs/environments/zaxxon.md # src/ale/python/registration.py
pseudo-rnd-thoughts
changed the title
Simplify registration to only the v5 environments
Simplify registration to NoFrameskip-v4 and v5 environments
Jan 9, 2025
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.
obs_type=
frameskip=
repeat_action_probability=
full_action_space=
"rgb"
(2, 5,)
0.25
False
"rgb"
4
0.25
False
"rgb"
1
0.25
False
"ram"
(2, 5,)
0.25
False
"ram"
4
0.25
False
"ram"
1
0.25
False
"rgb"
(2, 5,)
0.0
False
"rgb"
4
0.0
False
"rgb"
1
0.0
False
"ram"
(2, 5,)
0.0
False
"ram"
4
0.0
False
"ram"
1
0.0
False
"rgb"
4
0.25
False
"ram"
4
0.25
False
This table shows all the environment versions registered (a total of 14) for EACH of the 104 environments, resulting in 960 environments registered. This makes testing and viewing the environment registry very messy due to the number of environments.
Importantly, behind the scenes, all these environment versions use the same base environment with different parameters being passed. Theoretically, a single environment version can be registered with users specifying the environment parameters.
Despite over 960 environments registered, a very small subset are regularly used.
This PR reduces the number of ALE registered environments from 960 to 208 to only include
{rom_id}NoFrameskip-v4
andALE/{rom_id}-v5
.obs_type=
frameskip=
repeat_action_probability=
full_ation_space=
"rgb"
1
0.00
False
"rgb"
4
0.25
False
These were selected as
NoFrameskip-v4
, which is the most popular of the v0 or v4 environment, providing a frameskip of 1 for Atari Preprocessing and no repeat action probability.v5 is the most recent model that follows Machado et al., 2017.
To recreate old environments, users should pass the modified parameters to
gym.make
, for example to recreateAdventure-ramNoFrameskip-v4
, users should rungym.make("ALE/Adventure-v5", obs_type="ram", frameskip=1, repeat_action_probability=0)
following the table above for each variable.