Created
February 11, 2020 16:39
-
-
Save ikatsov/6a585dad96390ff5e0fa93d9f8d50708 to your computer and use it in GitHub Desktop.
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
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