Skip to content

Commit

Permalink
Fix episodic training of DDPG
Browse files Browse the repository at this point in the history
  • Loading branch information
muupan committed Feb 22, 2019
1 parent e2907a5 commit 4a376ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainerrl/agents/ddpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def update_from_episodes(self, episodes, errors_out=None):
for ep in sorted_episodes:
if len(ep) <= i:
break
transitions.append(ep[i])
transitions.append([ep[i]])
batch = batch_experiences(
transitions, xp=self.xp, phi=self.phi, gamma=self.gamma)
batches.append(batch)
Expand Down

0 comments on commit 4a376ee

Please sign in to comment.