Skip to content

Instantly share code, notes, and snippets.

@daanklijn
Created January 11, 2021 14:45
Show Gist options
  • Save daanklijn/abcc6208af09ddaff6725b87b05be034 to your computer and use it in GitHub Desktop.
Save daanklijn/abcc6208af09ddaff6725b87b05be034 to your computer and use it in GitHub Desktop.
main
def get_env():
env = gym.make('FrostbiteDeterministic-v4')
env = NoopResetEnv(env, noop_max=30)
env = WarpFrame(env, 84)
env = FrameStack(env, 4)
return env
register_env("frostbite", get_env)
config = {
"env": "frostbite",
"logger_config": {
"wandb": {
"project": "deep-neuroevolution",
"api_key": "~"
},
},
"log_level": "ERROR",
"num_gpus": 0,
"num_workers": 31,
"population_size": 1000,
"max_timesteps_per_episode": 5000,
"mutation_power": 0.005,
}
tune.run(
GATrainer,
name="GA",
stop={"timesteps_total": 500_000_000},
loggers=[WandbLogger],
config=config
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment