92384bb371d2ee8a3ffbacbf603acd5328855464,pymc3/distributions/multivariate.py,LKJCholeskyCov,logp,#LKJCholeskyCov#Any#,566
Before Change
corr_diag = x[diag_idxs] / rowlengths
corr_logdet = np.log(corr_diag).sum()
det_invjac = np.log(0.5 * rowlengths).sum()
return (self.n - 1) * corr_logdet + logp_sd + det_invjac
After Change
corr_diag = x[diag_idxs] / sd_vals
corr_logdet = np.log(corr_diag).sum()
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])
return (self.n - 1) * corr_logdet + logp_sd + det_invjac
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pymc-devs/pymc3
Commit Name: 92384bb371d2ee8a3ffbacbf603acd5328855464
Time: 2017-03-22
Author: adrian.seyboldt@gmail.com
File Name: pymc3/distributions/multivariate.py
Class Name: LKJCholeskyCov
Method Name: logp
Project Name: KrishnaswamyLab/PHATE
Commit Name: 55b6fb811938351d42929228ccbb0281183d8cf6
Time: 2018-04-06
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: von_neumann_entropy
Project Name: hpclab/rankeval
Commit Name: 8d4fee5d7dc69f82aadb38abc4564dda5cc8580f
Time: 2017-06-14
Author: cristina.i.muntean@gmail.com
File Name: rankeval/core/metrics/dcg.py
Class Name: DCG
Method Name: eval_per_query