Skip to content

Commit

Permalink
Merge pull request #54 from drlCoder/patch-1
Browse files Browse the repository at this point in the history
Added self.env.close() to "play"
  • Loading branch information
eriklindernoren authored Jun 9, 2019
2 parents 6c5135d + b049ce5 commit 40b52e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlfromscratch/reinforcement_learning/deep_q_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,4 @@ def play(self, n_epochs):
total_reward += reward
if done: break
print ("%d Reward: %s" % (epoch, total_reward))
self.env.close()

0 comments on commit 40b52e4

Please sign in to comment.