Skip to content

Instantly share code, notes, and snippets.

@ceteri
Last active July 7, 2020 05:27
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/56b9b68a9e23a81450e60bfa7c1c4381 to your computer and use it in GitHub Desktop.
Save ceteri/56b9b68a9e23a81450e60bfa7c1c4381 to your computer and use it in GitHub Desktop.
N_ITER = 30
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