Apply a prior on the lengthscale, can't fit likelihood #1782
-
Above is my code where I try to implement a kernel_module with a prior on the lengthscale. SingleTaskGP if not given a covar_module uses a Matern5/2 kernel with prior on lengthscale as I recreated. I get the error below when I call The error is this: Would anyone be able to help out with this? I'm guessing what the sparse_coo is referring to the coordinate in covariance matrix since the columns are computed as lazy tensors and the covar matrix is a sparse matrix. That doesn't help me undestand the problem, why is it applying a permutation on it? What are the ordering dimensions? And why does my input tensor only have 1 dimension when it should have 6? Anything helps, thanks everyone! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I think there is some confusion about the
to
then this runs fine. Now there is one thing to note - in the multi-output case (when you have more than one trailing dimension in |
Beta Was this translation helpful? Give feedback.
Hi, I think there is some confusion about the
batch_shape
on your end. In this case you don't actually have a batched model, and so you don't have to set abatch_shape
(functionally this means it's set totorch.Size([])
on the backend). If you change the lineto
then this runs fine.
Now there is one thing to note - in the multi-output case (when you have more than one trailing dimension in
train_y
, then the model does some reshuffling of dimensions internally to fit these models as batched models for efficiency/speed …