Skip to content

Using active dimension argument so that different kernels use different part of training and test data #1622

Answered by Balandat
GHU2021 asked this question in Q&A
Discussion options

You must be logged in to vote

If I understand correctly, what you'd want is

        self.covar_module = gpytorch.kernels.ScaleKernel(
            gpytorch.kernels.RBFKernel(batch_shape=torch.Size([L]),active_dims=[0, 1, ..., M-1]),
            batch_shape=torch.Size([L])) + 
            gpytorch.kernels.ScaleKernel(
            gpytorch.kernels.RBFKernel(batch_shape=torch.Size([L]),active_dims=[M, M+1, ..., 2M-1]),
            batch_shape=torch.Size([L]))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GHU2021
Comment options

Answer selected by GHU2021
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