Skip to content

Commit 88045d1

Browse files
Update BipedalWalker-v3_PPO.py
1 parent d00930e commit 88045d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

BipedalWalker-v3_PPO/BipedalWalker-v3_PPO.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def act(self, state):
182182
return action, logp_t
183183

184184
def gaussian_likelihood(self, action, pred, log_std):
185+
# https://github.com/hill-a/stable-baselines/blob/master/stable_baselines/sac/policies.py
185186
pre_sum = -0.5 * (((action-pred)/(np.exp(log_std)+1e-8))**2 + 2*log_std + np.log(2*np.pi))
186187
return np.sum(pre_sum, axis=1)
187188

0 commit comments

Comments
 (0)