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
31cfcadf
Commit
31cfcadf
authored
Apr 22, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DQN] split the environment runner from expreplay
parent
6d4a77c7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
57 deletions
+106
-57
examples/DeepQNetwork/DQN.py
examples/DeepQNetwork/DQN.py
+4
-1
examples/DeepQNetwork/expreplay.py
examples/DeepQNetwork/expreplay.py
+102
-56
No files found.
examples/DeepQNetwork/DQN.py
View file @
31cfcadf
...
...
@@ -108,12 +108,15 @@ def get_config(model):
batch_size
=
BATCH_SIZE
,
memory_size
=
MEMORY_SIZE
,
init_memory_size
=
INIT_MEMORY_SIZE
,
init_exploration
=
1.0
,
update_frequency
=
UPDATE_FREQ
,
history_len
=
FRAME_HISTORY
,
state_dtype
=
model
.
state_dtype
.
as_numpy_dtype
)
# Set to other values if you need a different initial exploration
# (e.g., # if you're resuming a training half-way)
# expreplay.exploration = 1.0
return
TrainConfig
(
data
=
QueueInput
(
expreplay
),
model
=
model
,
...
...
examples/DeepQNetwork/expreplay.py
View file @
31cfcadf
This diff is collapsed.
Click to expand it.
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