MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / make_atari

Function make_atari

rl3/a2c/atari_wrappers.py:219–224  ·  view source on GitHub ↗
(env_id)

Source from the content-addressed store, hash-verified

217
218
219def make_atari(env_id):
220 env = gym.make(env_id)
221 assert 'NoFrameskip' in env.spec.id
222 env = NoopResetEnv(env, noop_max=30)
223 env = MaxAndSkipEnv(env, skip=4)
224 return env
225
226
227def wrap_deepmind(env, episode_life=True, clip_rewards=True, frame_stack=False):

Callers 2

mainFunction · 0.90
_thunkFunction · 0.90

Calls 2

NoopResetEnvClass · 0.85
MaxAndSkipEnvClass · 0.85

Tested by

no test coverage detected