e4bdbe76308dbeff50741415ab8c080ef99a7d70,pymc3/distributions/multivariate.py,LKJCholeskyCov,logp,#LKJCholeskyCov#Any#,698

Before Change



        // Compute the log det jacobian of the second transformation
        // described in the docstring.
        count = np.arange(self.n - 1)
        det_invjac = - (count * tt.log(sd_vals[1:])).sum()
        det_invjac += - tt.log(x[diag_idxs]).sum() + tt.log(x[0])

        norm = _lkj_normalizing_constant(eta, self.n)

After Change


        variance = tt.inc_subtensor(
            variance[1:],
            cumsum[diag_idxs[1:]] - cumsum[diag_idxs[:-1]])
        sd_vals = tt.sqrt(variance)

        logp_sd = self.sd_dist.logp(sd_vals).sum()
        corr_diag = x[diag_idxs] / sd_vals

        logp_lkj = (2 * eta - 3 + n - tt.arange(n)) * np.log(corr_diag)
        logp_lkj = tt.sum(logp_lkj)

        // Compute the log det jacobian of the second transformation
        // described in the docstring.
        idx = tt.arange(n)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pymc-devs/pymc3
Commit Name: e4bdbe76308dbeff50741415ab8c080ef99a7d70
Time: 2017-03-22
Author: adrian.seyboldt@gmail.com
File Name: pymc3/distributions/multivariate.py
Class Name: LKJCholeskyCov
Method Name: logp


Project Name: rusty1s/pytorch_geometric
Commit Name: 534a10d60d3c5a356c8121f9b3c53f49cf873f96
Time: 2019-12-06
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/transforms/gdc.py
Class Name: GDC
Method Name: diffusion_matrix_approx


Project Name: scipy/scipy
Commit Name: 1c966bdf31764b9f51d376f19041d0ba7953b542
Time: 2012-06-12
Author: jakevdp@yahoo.com
File Name: scipy/stats/_binned_statistic.py
Class Name:
Method Name: binned_statistic_dd