Skip to content

Commit c9a8b0b

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 pymc-devs#7754
1 parent 30f3899 commit c9a8b0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymc/gp/gp.py

Lines changed: 1 addition & 0 deletions
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)