Skip to content

Commit 9a06c87

Browse files
committed
update names
1 parent 9d98f74 commit 9a06c87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rl2/mountaincar/pg_tf_random.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ def get_output(layers):
9494

9595
# calculate output and cost
9696
mean = get_output(self.mean_layers)
97-
var = get_output(self.var_layers) + 1e-4 # smoothing
97+
std = get_output(self.var_layers) + 1e-4 # smoothing
9898

99-
norm = tf.contrib.distributions.Normal(mean, var)
99+
# note: the 'variance' is actually standard deviation
100+
norm = tf.contrib.distributions.Normal(mean, std)
100101
self.predict_op = tf.clip_by_value(norm.sample(), -1, 1)
101102

102103

0 commit comments

Comments
 (0)