Skip to content

Commit

Permalink
Merge pull request #44 from r7vme/ddpg-example
Browse files Browse the repository at this point in the history
Adjust DDPG example to actually win
  • Loading branch information
araffin committed Oct 2, 2018
2 parents 4983566 + 1d6a593 commit 0e4805d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/modules/ddpg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ Example
# the noise objects for DDPG
n_actions = env.action_space.shape[-1]
param_noise = None
action_noise = NormalActionNoise(mean=np.zeros(n_actions), sigma=float(0.2) * np.ones(n_actions))
action_noise = OrnsteinUhlenbeckActionNoise(mean=np.zeros(n_actions), sigma=float(0.5) * np.ones(n_actions))
model = DDPG(MlpPolicy, env, verbose=1, param_noise=param_noise, action_noise=action_noise)
model.learn(total_timesteps=25000)
model.learn(total_timesteps=400000)
model.save("ddpg_mountain")
del model # remove to demonstrate saving and loading
Expand Down

0 comments on commit 0e4805d

Please sign in to comment.