Skip to content

Instantly share code, notes, and snippets.

@ikatsov
Created February 11, 2020 16:39
Show Gist options
  • Save ikatsov/6a585dad96390ff5e0fa93d9f8d50708 to your computer and use it in GitHub Desktop.
Save ikatsov/6a585dad96390ff5e0fa93d9f8d50708 to your computer and use it in GitHub Desktop.
config = ddpg.DEFAULT_CONFIG.copy()
config["actor_hiddens"] = [512, 512]
config["critic_hiddens"] = [512, 512]
config["gamma"] = 0.95
config["timesteps_per_iteration"] = 1000
config["target_network_update_freq"] = 5
config["buffer_size"] = 10000
trainer = ddpg.DDPGTrainer(config=config, env=SimpleSupplyChain)
for i in range(n_iterations):
result = trainer.train()
print(pretty_print(result))
#> Achieved profit: 9238.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment