Skip to content
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

Gaussian Process confronts "Cholesky decomposition was not successful. The input might not be valid." #400

Open
yezhengli-Mr9 opened this issue Sep 7, 2020 · 2 comments

Comments

@yezhengli-Mr9
Copy link

Although Gaussian kernel (RBF Kernel) is positive definite, I think Gaussian Process from time to time confronts
Cholesky decomposition was not successful. The input might not be valid. after
(1) covariance_matrix = self.covariance_fn(inputs, inputs) with self.covariance_fn=ExponentiatedQuadratic;
(2) covariance_matrix = tf.linalg.set_diag(covariance_matrix,tf.linalg.diag_part(covariance_matrix) + tf.keras.backend.epsilon())

Meanwhile, covariance_matrix = tf.linalg.set_diag(covariance_matrix,tf.linalg.diag_part(covariance_matrix) + 100* tf.keras.backend.epsilon()) might help but cannot solve the problem in a scientific way,only reduce the frequency of the error:

Cholesky decomposition was not successful. The input might not be valid.

@yezhengli-Mr9
Copy link
Author

OK, I see that "Cholesky decompositions are a common failure mode in GP optimizations" in github.com/tensorflow/probability/issues/650.

@yezhengli-Mr9
Copy link
Author

I also tried to adjust covariance_fn=ExponentiatedQuadratic(variance=1., lengthscale=1.) but does not quite help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant