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
796a4353
You need to sign in or sign up before continuing.
Commit
796a4353
authored
Nov 01, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix import (fix #461)
parent
00473316
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/DeepQNetwork/common.py
examples/DeepQNetwork/common.py
+2
-2
No files found.
examples/DeepQNetwork/common.py
View file @
796a4353
...
...
@@ -9,7 +9,7 @@ from tqdm import tqdm
from
six.moves
import
queue
from
tensorpack.utils.concurrency
import
StoppableThread
,
ShareSessionThread
from
tensorpack.callbacks
import
Triggerable
from
tensorpack.callbacks
import
Callback
from
tensorpack.utils
import
logger
from
tensorpack.utils.stats
import
StatCounter
from
tensorpack.utils.utils
import
get_tqdm_kwargs
...
...
@@ -108,7 +108,7 @@ def eval_model_multithread(pred, nr_eval, get_player_fn):
logger
.
info
(
"Average Score: {}; Max Score: {}"
.
format
(
mean
,
max
))
class
Evaluator
(
Triggerable
):
class
Evaluator
(
Callback
):
def
__init__
(
self
,
nr_eval
,
input_names
,
output_names
,
get_player_fn
):
self
.
eval_episode
=
nr_eval
self
.
input_names
=
input_names
...
...
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