-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
GP-MeansAndCovs.ipynb throws LinAlgError #12
Comments
So, the covariance matrix is singular. Before MvNormal.random was fixed for shape errors in pymc-devs/pymc#4207, it supported I can lookup the implementation in scipy this week and add to PyMC3 to also support singular matrices. |
cool, thanks for your explanation! Do you to change it to, e.g. K = cov(X).eval()
K += np.random.randn(*K.shape)*1e-1 ? If so, |
Something like cov = eta ** 2 * pm.gp.cov.ExpQuad(1, lengthscale) + pm.gp.cov.WhiteNoise(1e-6) |
Ah, makes sense, thanks, that works! |
Cell 6 contains:
which throws
As per #11 , I can fix this by specifying the shape of the MvNormal:
but then I get
cc @Sayam753 any suggestions?
The text was updated successfully, but these errors were encountered: