7a31475bb139893cd3fd2bd1dbc33d040a0511c8,pymc3/distributions/multivariate.py,MvNormal,_logp_tau,#MvNormal#Any#,114

Before Change



    def _logp_tau(self, value):
        chol_tau = self.chol_tau
        k = chol_tau.shape[0]

        mu = self.mu
        delta = value.reshape((-1, k)) - mu
        delta_trans = tt.dot(chol_tau.T, delta.T)

After Change


        diag = tt.nlinalg.diag(chol_tau)
        delta_trans = tt.dot(chol_tau.T, delta.T)

        result = n * k * tt.log(2 * np.pi)
        result -= 2.0 * n * tt.sum(tt.log(diag))
        result += (delta_trans ** 2).sum()
        result = -0.5 * result
        return bound(result, ok)


class MvStudentT(Continuous):
    R
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pymc-devs/pymc3
Commit Name: 7a31475bb139893cd3fd2bd1dbc33d040a0511c8
Time: 2017-05-04
Author: aseyboldt@users.noreply.github.com
File Name: pymc3/distributions/multivariate.py
Class Name: MvNormal
Method Name: _logp_tau


Project Name: pymc-devs/pymc3
Commit Name: 7a31475bb139893cd3fd2bd1dbc33d040a0511c8
Time: 2017-05-04
Author: aseyboldt@users.noreply.github.com
File Name: pymc3/distributions/multivariate.py
Class Name: MvNormal
Method Name: _logp_chol


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