Skip to content

Instantly share code, notes, and snippets.

@roclark
Created December 20, 2020 23:12
Show Gist options
  • Save roclark/1482b6131202f9c662fa51a4a418f764 to your computer and use it in GitHub Desktop.
Save roclark/1482b6131202f9c662fa51a4a418f764 to your computer and use it in GitHub Desktop.
def print_results(result, iteration):
table = [['IMPALA',
iteration,
result['timesteps_total'],
round(result['episode_reward_max'], 3),
round(result['episode_reward_min'], 3),
round(result['episode_reward_mean'], 3)]]
print(tabulate(table,
headers=['Agent',
'Iteration',
'Steps',
'Max Reward',
'Min Reward',
'Mean Reward'],
tablefmt='psql',
showindex="never"))
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment