3ca448728b74a7a6186c7c76f518f1362163ce0d,mushroom/policy/gaussian_policy.py,GaussianPolicy,diff_log,#GaussianPolicy#Any#Any#,29
Before Change
def diff_log(self, state, action):
mu, sigma = self._compute_gaussian(state, False)
delta = action - mu
j_mu = np.expand_dims(self._approximator.diff(state), axis=1)
g = j_mu.dot(delta) / sigma**2
return g
def set_sigma(self, sigma):
After Change
delta = action - mu
j_mu = self._approximator.diff(state)
if len(j_mu.shape) == 1:
j_mu = np.expand_dims(j_mu, axis=1)
g = .5 * j_mu.dot(inv_sigma + inv_sigma.T).dot(delta.T)
return g
def set_weights(self, weights):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: AIRLab-POLIMI/mushroom
Commit Name: 3ca448728b74a7a6186c7c76f518f1362163ce0d
Time: 2018-04-07
Author: davide.tateo90@gmail.com
File Name: mushroom/policy/gaussian_policy.py
Class Name: GaussianPolicy
Method Name: diff_log
Project Name: epfl-lts2/pygsp
Commit Name: d21ada21ecdf758d30278b36f2b2acec6d75d8d9
Time: 2019-02-25
Author: michael.defferrard@epfl.ch
File Name: pygsp/graphs/randomring.py
Class Name: RandomRing
Method Name: __init__
Project Name: pymc-devs/pymc3
Commit Name: 2511a589c617435eb6f2ffea187ecd43aec7994e
Time: 2017-05-18
Author: aloctavodia@gmail.com
File Name: pymc3/plots/energyplot.py
Class Name:
Method Name: energyplot