Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
13530934
baselines
Commits
584261a9
Commit
584261a9
authored
Jun 04, 2017
by
Szymon Sidor
Committed by
GitHub
Jun 04, 2017
Browse files
Merge pull request #14 from quanvuong/master
Consistent initial type (float) for episode_rewards
parents
9c10c2fc
86054f7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
baselines/deepq/simple.py
View file @
584261a9
...
...
@@ -222,7 +222,7 @@ def learn(env,
episode_rewards
[
-
1
]
+=
rew
if
done
:
obs
=
env
.
reset
()
episode_rewards
.
append
(
0
)
episode_rewards
.
append
(
0
.0
)
if
t
>
learning_starts
and
t
%
train_freq
==
0
:
# Minimize the error in Bellman's equation on a batch sampled from replay buffer.
...
...
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