Skip to content

Commit

Permalink
Noise STD as part of parameters in DDPG
Browse files Browse the repository at this point in the history
  • Loading branch information
sharif1093 committed Mar 19, 2019
1 parent cdba0ba commit bae6119
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions digideep/params/classic_ddpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@

cpanel["polyak_factor"] = 0.001 # 0.01

cpanel["noise_std"] = 0.2


################################################################################
######### PARAMETER TREE #########
Expand Down Expand Up @@ -179,10 +181,10 @@ def gen_params(cpanel):

lim = params["env"]["config"]["action_space"][agent_name]["lim"][1][0]
# params["agents"]["agent"]["noisename"] = "digideep.agent.noises.EGreedyNoise"
# params["agents"]["agent"]["noiseargs"] = {"std":0.2, "e":0.3, "lim": lim}
# params["agents"]["agent"]["noiseargs"] = {"std":cpanel["noise_std"], "e":0.3, "lim": lim}

params["agents"]["agent"]["noisename"] = "digideep.agent.noises.OrnsteinUhlenbeckNoise"
params["agents"]["agent"]["noiseargs"] = {"mu":0, "theta":0.15, "sigma":0.2, "lim":lim}
params["agents"]["agent"]["noiseargs"] = {"mu":0, "theta":0.15, "sigma":cpanel["noise_std"], "lim":lim}
# params["agents"]["agent"]["noiseargs"] = {"mu":0, "theta":0.15, "sigma":1}

params["agents"]["agent"]["optimname_actor"] = "torch.optim.Adam"
Expand Down

0 comments on commit bae6119

Please sign in to comment.