Skip to content

Strange covar module in MixedSingleTaskGP #1457

Answered by saitcakmak
K-Kielak asked this question in Q&A
Discussion options

You must be logged in to vote

Especially that both Matern and Categorical kernel have default output scale of [0, 1].

In GPyTorch, the kernels do not have an output scale. The ScaleKernel is used to add an output scale to any given kernel. So, that's where that bit comes into play.

Onto the structure of the sum kernel: This is actually equivalent to sum_kernel = ScaleKernel(MaternKernel(...)) + ScaleKernel(CategoricalKernel(...)) in theory. Since the output scale in ScaleKernel is a trained parameter, there isn't a difference between the two. The original reads

sum_kernel = scale_1 * (matern + scale_2 * categorical) = scale_1 * matern + scale_1 * scale_2 * categorical

If you define scale_3 = scale_1 * scale_2, you …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@K-Kielak
Comment options

Answer selected by K-Kielak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants