Replies: 3 comments 2 replies
-
Hi @frazane, Thank you for your kind words. :) This sounds super cool! Yeah by default, all dimensions use a single parameter. To override this, currently you can use import jaxkern as jk
rbf = jk.RBF(active_dims=[0,1,2,4])
print(rbf.init_params(123))
#{'lengthscale': Array([1., 1., 1., 1.], dtype=float32), 'variance': Array([1.], dtype=float32)}
# The lengthscale parameters correspond to dims 0, 1, 2, 4 of your inputs. |
Beta Was this translation helpful? Give feedback.
-
Hi Daniel, thanks for answering! However, I wasn't referring to the lengthscale parameter of the Kernel, but the variance parameter. I'd like to have multiple values (one for each point, calculated from the input values) for the variance, instead of a single one. |
Beta Was this translation helpful? Give feedback.
-
Hi @frazane, Sorry that I interpreted your question incorrectly! I missed this in your original question:
Are we talking about hetroscedastic noise here: i.e., have a different noise variance As the RBF kernel |
Beta Was this translation helpful? Give feedback.
-
Hi all! I recently started to use the library and I am very happy so far. Thanks a lot to all contributors 😄 I don't have a strong mathematical background so forgive me if I say something idiotic.
I have a problem where I want to use a neural network as
mean_function
in thePrior
. This was fairly easy to implement: I subclassed theAbstractMeanFunction
and wrapped ahk.Module
the same way it is done in the Deep Kernel Learning example.Now, my problem is that I would also expect the variance to be different for each input sample, but I see that by default the
variance
in the RBF kernel (which I'm using) is a single parameter. So, if I understand correctly, all values along the diagonal will take the same constant value.Is there a way to have the variance depend on the input values of each sample, instead of being a single adjustable parameter?
How would I then combine the computed variance with the Kernel function?
Might be related to #113?
Beta Was this translation helpful? Give feedback.
All reactions