How to fix parameter in kernels? #2238
Answered
by
gpleiss
HanyangHenry-Wang
asked this question in
Q&A
-
Hi, I have a question about how to set the parameter of the kernel. |
Beta Was this translation helpful? Give feedback.
Answered by
gpleiss
Jan 17, 2023
Replies: 1 comment 2 replies
-
There's a few ways to accomplish this, but the easiest way is to set: # self.covar_module = ScaleKernel(RBFKernel())
self.covar_module.base_kernel.raw_lengthscale.requires_grad_(False) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
gpleiss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's a few ways to accomplish this, but the easiest way is to set: