Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
CNNArch2Gluon
Commits
3366990b
Commit
3366990b
authored
Jun 11, 2019
by
Nicola Gatto
Browse files
Only initialize DDPG target when training is not resumed
parent
4ed3b332
Pipeline
#149078
failed with stages
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/templates/gluon/reinforcement/agent/Agent.ftl
View file @
3366990b
...
...
@@ -465,9 +465,9 @@ class DdpgAgent(Agent):
else:
self._training_stats = DdpgTrainingStats(episodes)
# Initialize target Q' and mu'
self._actor_target = self._copy_actor()
self._critic_target = self._copy_critic()
# Initialize target Q' and mu'
self._actor_target = self._copy_actor()
self._critic_target = self._copy_critic()
# Initialize l2 loss for critic network
l2_loss = gluon.loss.L2Loss()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment