Skip to content

Commit

Permalink
fix demos evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
rizar committed Feb 19, 2019
1 parent a2db811 commit 8964a6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def main(args, seed, episodes):
if n > 0:
print("{} worst episodes:".format(n))
for i in indexes[:n]:
print(logs['seed_per_episode'][i])
if 'seed_per_episode' in logs:
print(logs['seed_per_episode'][i])
if args.model is not None:
print("- episode {}: R={}, F={}".format(i, logs["return_per_episode"][i], logs["num_frames_per_episode"][i]))
else:
Expand Down

0 comments on commit 8964a6d

Please sign in to comment.