Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel hyperparameter learning #82

Open
martinjankowiak opened this issue Jan 17, 2021 · 1 comment
Open

kernel hyperparameter learning #82

martinjankowiak opened this issue Jan 17, 2021 · 1 comment

Comments

@martinjankowiak
Copy link

hello,

i'm confused about how to make sure that all the hyperparameters of my kernel are being learned.

in particular i would like to use a matern 5/2 kernel specified by D+1 parameters (D length scales and one kernel scale). to my understanding that can be specified as follows

kernel = transform(transform(Matern52Kernel(), ScaleTransform(1.0)), ARDTransform(ones(D)))

however, if i use Flux.params(kernel) to inspect the kernel hyperparameters after training it seems the hyperparameters haven't been updated.

note that i am using SVGP with the default optimiser so i would expect the hyperpararmeters to be updated. is this the wrong way to inspect the hyperparameters? do i need to do anything else to specify that i want the hyperparameters to be updated?

thank you!

@theogf
Copy link
Owner

theogf commented Jan 18, 2021

Hi!

If you aim at having a kernel of the type k(x,y) = sigma * Matern52(X/lengthscale), ScaleTransform will not work, you can either use ScaledKernel(kernel, sigma) or more simply sigma * kernel.

About the lack of updates of the parameters, this should obviously not happen :). I will check what's happening. But note that a more stable version is currently worked on #71 but is waiting on JuliaGaussianProcesses/KernelFunctions.jl#203 to be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants