Skip to content

Commit 5155844

Browse files
Rojan ShresthaRojan Shrestha
authored andcommitted
updated docstring for pm.MatrixNormal to ensure compatibility with current version
1 parent a714b24 commit 5155844

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc/distributions/multivariate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,16 +1827,16 @@ class MatrixNormal(Continuous):
18271827
with pm.Model() as model:
18281828
# Setup right cholesky matrix
18291829
sd_dist = pm.HalfCauchy.dist(beta=2.5, shape=3)
1830-
colchol_packed = pm.LKJCholeskyCov('colcholpacked', n=3, eta=2,
1831-
sd_dist=sd_dist)
1830+
colchol_packed = pm.LKJCholeskyCov('colcholpacked', n=3, eta=2,compute_corr=False,
1831+
sd_dist=sd_dist)
18321832
colchol = pm.expand_packed_triangular(3, colchol_packed)
18331833
18341834
# Setup left covariance matrix
18351835
scale = pm.LogNormal('scale', mu=np.log(true_scale), sigma=0.5)
18361836
rowcov = pt.diag([scale**(2*i) for i in range(m)])
18371837
18381838
vals = pm.MatrixNormal('vals', mu=mu, colchol=colchol, rowcov=rowcov,
1839-
observed=data)
1839+
observed=data)
18401840
"""
18411841

18421842
rv_op = matrixnormal

0 commit comments

Comments
 (0)