Replies: 1 comment
-
This makes me believe that there is a bug in your code. The "jitter" is supposed to be for kernels that are positive definite in exact arithmetic, but not positive definite in floating point arithmetic due to round-off errors. A jitter of 0.1 makes me think that your kernel is somehow not positive definite, which is likely due to a bug in your code. I haven't had the time to go through your code to debug it, but what I would recommend is following the custom kernels tutorial. Try implementing your kernel without any hyperparameters first (i.e. set |
Beta Was this translation helpful? Give feedback.
-
I am a beginner in gpytorch, and now need to implement a div-free RBF kernel in my project.

Ref paper: Learning divergence-free and curl-free vector field - Macedo and Castro.
Inspired by discussions #1504, I wrote a kernel as below:
create a multitask model
I try to train the model with a 2d-vector-field dataset, it seems that the DivFreeKernel work properly. However, an error occurred during I increasing the number of
training_iterations
:According to issue #1479, I add a line
with gpytorch.settings.cholesky_jitter(1e-1):
and it doesn't show errors anymore.Q1: Is this a good way to build a div-free RBF multitask kernel?
Expect to expand the kernel
According to this paper Kernels for Vector-Valued Functions: A Review, we can implement a Hessian matrix to a scalar kernel function to get a vector-value kernel with zero-divergence constraint.

Q2: Is it possible to create a div-free multitask kernel that converts scalar kernel to vector-value/multitask kernel?
look like:
Beta Was this translation helpful? Give feedback.
All reactions