Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2048
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Wen Yao Jin
2048
Commits
f3b84409
Commit
f3b84409
authored
Mar 6, 2017
by
Wen Yao Jin
Browse files
Options
Downloads
Patches
Plain Diff
Update puzzle.py
parent
0fc3a4e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
puzzle.py
+5
-5
5 additions, 5 deletions
puzzle.py
with
5 additions
and
5 deletions
puzzle.py
+
5
−
5
View file @
f3b84409
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment