Continuous A3C

This commit is contained in:
Shangtong Zhang
2017-07-31 22:53:09 -06:00
parent 473304d9a7
commit 1be3b44999
12 changed files with 170 additions and 53 deletions
+2 -2
View File
@@ -48,10 +48,10 @@ class SamplePolicy:
pass
class GaussianPolicy:
def sample(self, mean, var, deterministic=False):
def sample(self, mean, std, deterministic=False):
if deterministic:
return mean
return mean + np.sqrt(var) * np.random.randn(*mean.shape)
return mean + std * np.random.randn(*mean.shape)
def update_epsilon(self):
pass