uniform kernel #2208
Unanswered
ekinugurel
asked this question in
Q&A
uniform kernel
#2208
Replies: 1 comment
-
What do you mean by "it doesn't seem to work"? Is it throwing errors? Returning incorrect results? One thing of the top of my head - don't use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, relatively new GPyTorch user here. I am looking to implement a constant (uniform) kernel in the following form

I took the example sinc kernel shown in here and tried something similar using np.piecewise.
`class ConstantKernel(gpytorch.kernels.Kernel):
has_lengthscale = True
But it doesn't seem to work. Can anyone advise on this approach? Sorry for the simple question.
Beta Was this translation helpful? Give feedback.
All reactions