Skip to content

Commit f5509b9

Browse files
Merge pull request #465 from keisuke-nakata/noisy-net-sigma
Apply `noisy_net_sigma` parameter
2 parents e90d4ef + 7671be1 commit f5509b9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/ale/train_dqn_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def make_env(test):
176176
q_func = parse_arch(args.arch, n_actions)
177177

178178
if args.noisy_net_sigma is not None:
179-
links.to_factorized_noisy(q_func)
179+
links.to_factorized_noisy(q_func, sigma_scale=args.noisy_net_sigma)
180180
# Turn off explorer
181181
explorer = explorers.Greedy()
182182
else:

examples/ale/train_dqn_batch_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def make_batch_env(test):
174174
q_func = parse_arch(args.arch, n_actions)
175175

176176
if args.noisy_net_sigma is not None:
177-
links.to_factorized_noisy(q_func)
177+
links.to_factorized_noisy(q_func, sigma_scale=args.noisy_net_sigma)
178178
# Turn off explorer
179179
explorer = explorers.Greedy()
180180

examples/atari/rainbow/train_rainbow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def make_env(test):
9999
q_func = DistributionalDuelingDQN(n_actions, n_atoms, v_min, v_max,)
100100

101101
# Noisy nets
102-
links.to_factorized_noisy(q_func)
102+
links.to_factorized_noisy(q_func, sigma_scale=args.noisy_net_sigma)
103103
# Turn off explorer
104104
explorer = explorers.Greedy()
105105

examples/gym/train_dqn_gym.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def make_env(test):
137137
action_space.sample)
138138

139139
if args.noisy_net_sigma is not None:
140-
links.to_factorized_noisy(q_func)
140+
links.to_factorized_noisy(q_func, sigma_scale=args.noisy_net_sigma)
141141
# Turn off explorer
142142
explorer = explorers.Greedy()
143143

0 commit comments

Comments
 (0)