-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
BUG: Posterior predictive sampling of Latent GPs runs into LinAlgError
at the first iteration
#7754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The MvNormal now uses cholesky decomp instead of svd by default which is faster but more brittle to extreme/degenerate covariances |
pymc-examples/.../GP-Latent.ipynb runs into the |
It's not about min/max it will fail wherever calling np.cholesky would fail. We can pass method="svd" to the MvNormal created by GP (and perhaps also let the user override whatever default we settle on) |
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
Can confirm that I will also do a PR to fix the |
MvNormal was switched from SVD to Cholesky decomposition by default. This is brittle for many GPs, therefore PyMC > 5.22.0 will defaults Latent GP conditionals to `method="svd"`. The example notebook includes manually created `MvNormal`s that also need `method="svd"` to work. I also switched from numpyro back to the default sampler, because I couldn't install numpyro on my Windows. See pymc-devs/pymc#7754.
MvNormal was switched from SVD to Cholesky decomposition by default. This is brittle for many GPs, therefore PyMC > 5.22.0 will defaults Latent GP conditionals to `method="svd"`. The example notebook includes manually created `MvNormal`s that also need `method="svd"` to work. I also switched from numpyro back to the default sampler, because I couldn't install numpyro on my Windows. See pymc-devs/pymc#7754.
Describe the issue:
I can no longer do posterior predictive sampling with any model involving a
gp.Latent
.Every model I tried instantly runs into
LinAlgError
.Reproduceable code example:
Error message:
PyMC version information:
main
@ 30f3899Context for the issue:
No response
The text was updated successfully, but these errors were encountered: