Skip to content

Instantly share code, notes, and snippets.

@ceteri
Last active July 7, 2020 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceteri/51684ed5627c49b5724aebb934c58a79 to your computer and use it in GitHub Desktop.
Save ceteri/51684ed5627c49b5724aebb934c58a79 to your computer and use it in GitHub Desktop.
N_ITER = 40
s = "{:3d} reward {:6.2f}/{:6.2f}/{:6.2f} len {:6.2f} saved {}"
for n in range(N_ITER):
result = agent.train()
file_name = agent.save(CHECKPOINT_ROOT)
print(s.format(
n + 1,
result["episode_reward_min"],
result["episode_reward_mean"],
result["episode_reward_max"],
result["episode_len_mean"],
file_name
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment