We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d98f74 commit 9a06c87Copy full SHA for 9a06c87
rl2/mountaincar/pg_tf_random.py
@@ -94,9 +94,10 @@ def get_output(layers):
94
95
# calculate output and cost
96
mean = get_output(self.mean_layers)
97
- var = get_output(self.var_layers) + 1e-4 # smoothing
+ std = get_output(self.var_layers) + 1e-4 # smoothing
98
99
- norm = tf.contrib.distributions.Normal(mean, var)
+ # note: the 'variance' is actually standard deviation
100
+ norm = tf.contrib.distributions.Normal(mean, std)
101
self.predict_op = tf.clip_by_value(norm.sample(), -1, 1)
102
103
0 commit comments