Skip to content

Commit 2842401

Browse files
Default to SVD for MvNormal in Latent GP conditionals
MvNormal was recently switched to default to use cholesky decomposition which is very fragile for the higher-dimensional situations encountered in `Latent` GPs. Closes #7754
1 parent 30f3899 commit 2842401

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymc/gp/gp.py

+1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ def conditional(self, name, Xnew, given=None, jitter=JITTER_DEFAULT, **kwargs):
281281
"""
282282
givens = self._get_given_vals(given)
283283
mu, cov = self._build_conditional(Xnew, *givens, jitter)
284+
kwargs.setdefault("method", "svd")
284285
f = pm.MvNormal(name, mu=mu, cov=cov, **kwargs)
285286

286287
return f

0 commit comments

Comments
 (0)