Skip to content
Snippets Groups Projects
Commit 0be290f4 authored by Wen Yao Jin's avatar Wen Yao Jin
Browse files

Update puzzle.py

parent f3b84409
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,9 @@ class GameGrid(Frame): ...@@ -124,7 +124,9 @@ class GameGrid(Frame):
self.reset() self.reset()
if (self.count == TRAIN): if (self.count == TRAIN):
np.savetxt("train_result_after_"+str(TRAIN)+".txt", self.agent.W) f = open("train_result_after_"+str(TRAIN)+".txt",'w')
np.savetxtf, self.agent.W)
f.close()
# plt.plot(self.history) # plt.plot(self.history)
# plt.show() # plt.show()
# print(reward) # print(reward)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment