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

Update puzzle.py

parent 0fc3a4e4
No related branches found
No related tags found
No related merge requests found
import matplotlib # import matplotlib
matplotlib.use("TkAgg") # matplotlib.use("TkAgg")
import matplotlib.pyplot as plt # import matplotlib.pyplot as plt
from tkinter import * from tkinter import *
from logic import * from logic import *
...@@ -125,8 +125,8 @@ class GameGrid(Frame): ...@@ -125,8 +125,8 @@ class GameGrid(Frame):
if (self.count == TRAIN): if (self.count == TRAIN):
np.savetxt("train_result_after_"+str(TRAIN)+".txt", self.agent.W) np.savetxt("train_result_after_"+str(TRAIN)+".txt", self.agent.W)
plt.plot(self.history) # plt.plot(self.history)
plt.show() # plt.show()
# print(reward) # print(reward)
# self.matrix # self.matrix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment