Skip to content

Commit

Permalink
Add logging to last episode (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
alperenunlu authored Nov 7, 2023
1 parent 4eb4483 commit 105e952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intermediate_source/mario_rl_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def record(self, episode, epsilon, step):

logger.log_episode()

if e % 20 == 0:
if (e % 20 == 0) or (e == episodes - 1):
logger.record(episode=e, epsilon=mario.exploration_rate, step=mario.curr_step)


Expand Down

0 comments on commit 105e952

Please sign in to comment.