5e329a5e3e9453ae0800ab438d2fa9f991f35a00,pymc3/examples/LKJ_correlation.py,,,#,8
Before Change
corr_matrix = corr_triangle[tri_index]
corr_matrix = tt.fill_diagonal(corr_matrix, 1)
cov_matrix = tt.diag(sigma).dot(corr_matrix.dot(tt.diag(sigma)))
like = pm.MvNormal("likelihood", mu=mu, cov=cov_matrix, observed=dataset)
After Change
// Extract the standard deviations etc
sd = pm.Deterministic("sd", tt.sqrt(tt.diag(cov)))
corr = tt.diag(sd**-1).dot(cov.dot(tt.diag(sd**-1)))
r = pm.Deterministic("r", corr[np.triu_indices(n_var, k=1)])
like = pm.MvNormal("likelihood", mu=mu, chol=chol, observed=dataset)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pymc-devs/pymc3
Commit Name: 5e329a5e3e9453ae0800ab438d2fa9f991f35a00
Time: 2017-06-02
Author: junpeng.lao@unifr.ch
File Name: pymc3/examples/LKJ_correlation.py
Class Name:
Method Name:
Project Name: glm-tools/pyglmnet
Commit Name: fb4b9023f9ec516648d58b4ba2ecd8e241e21618
Time: 2016-11-16
Author: pavan.ramkumar@gmail.com
File Name: pyglmnet/utils.py
Class Name:
Method Name: tikhonov_from_prior
Project Name: pymanopt/pymanopt
Commit Name: 80de995c0d3cefa42eea229f215a2cf76932027f
Time: 2016-08-15
Author: jamiehntownsend@gmail.com
File Name: tests/test_manifold_fixed_rank.py
Class Name: TestFixedRankEmbeddedManifold
Method Name: test_retr