0b169fcf6e089ad7e6c9a8faf3aaf69de28ebef5,pymc3/distributions/multivariate.py,MvNormal,logp,#MvNormal#Any#,190
Before Change
delta = value - mu
if self._cov_type == "cov":
// Use this when Theano/ is released.
// return MvNormalLogp()(self.cov, delta)
logp = self._logp_cov(delta)
elif self._cov_type == "tau":
logp = self._logp_tau(delta)
else:
logp = self._logp_chol(delta)
if onedim:
return logp[0]
return logp
def _logp_chol(self, delta):
chol_cov = self.chol_cov
After Change
def logp(self, value):
quaddist, logdet, ok = self._quaddist(value)
k = value.shape[-1].astype(theano.config.floatX)
norm = - 0.5 * k * pm.floatX(np.log(2 * np.pi))
return bound(norm - 0.5 * quaddist - logdet, ok)
def _repr_latex_(self, name=None, dist=None):
if dist is None:
dist = self
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: pymc-devs/pymc3
Commit Name: 0b169fcf6e089ad7e6c9a8faf3aaf69de28ebef5
Time: 2017-07-11
Author: aseyboldt@users.noreply.github.com
File Name: pymc3/distributions/multivariate.py
Class Name: MvNormal
Method Name: logp
Project Name: pymc-devs/pymc3
Commit Name: 62859ba05a9dff7677b6946077544bb9a224c8cc
Time: 2017-06-28
Author: maxim.v.kochurov@gmail.com
File Name: pymc3/variational/opvi.py
Class Name: Approximation
Method Name: logq
Project Name: pymc-devs/pymc3
Commit Name: 62859ba05a9dff7677b6946077544bb9a224c8cc
Time: 2017-06-28
Author: maxim.v.kochurov@gmail.com
File Name: pymc3/variational/opvi.py
Class Name: Approximation
Method Name: logp