Skip to content

Commit

Permalink
Add plain text (csv) logging of the success_rate (more readable outsi…
Browse files Browse the repository at this point in the history
…de of tensorboard)
  • Loading branch information
little-nem committed Jun 5, 2019
1 parent a72fe13 commit b6d63e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,5 @@
print("Testing at episode {}, success rate : {}".format(ep, success_number/TESTING_ROLLOUTS))
agent.save_model("{}/ckpt_episode_{}".format(directory, ep))
agent.update_success(success_number/TESTING_ROLLOUTS, ep)
with open("csv_log.csv", "a") as csv_log:
csv_log.write("{}; {}\n".format(ep, success_number/TESTING_ROLLOUTS))

0 comments on commit b6d63e2

Please sign in to comment.