Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
afab50e6
Commit
afab50e6
authored
Jun 05, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove video-recording code...
parent
49a21a29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
examples/Atari2600/DQN.py
examples/Atari2600/DQN.py
+1
-6
No files found.
examples/Atari2600/DQN.py
View file @
afab50e6
...
...
@@ -152,11 +152,7 @@ def play_one_episode(player, func, verbose=False):
return
np
.
mean
(
player
.
play_one_episode
(
f
))
def
play_model
(
model_path
):
import
uuid
dirname
=
'record'
+
str
(
uuid
.
uuid1
())[:
6
]
print
dirname
os
.
mkdir
(
dirname
)
player
=
get_player
(
viz
=
dirname
)
player
=
get_player
(
viz
=
0.01
)
cfg
=
PredictConfig
(
model
=
Model
(),
input_data_mapping
=
[
0
],
...
...
@@ -166,7 +162,6 @@ def play_model(model_path):
while
True
:
score
=
play_one_episode
(
player
,
predfunc
)
print
(
"Total:"
,
score
)
break
def
eval_with_funcs
(
predict_funcs
,
nr_eval
=
EVAL_EPISODE
):
class
Worker
(
StoppableThread
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment