Skip to content

[Question] When using "SingleTaskGP", does it add OutputScale to the kernel automatically? #953

Answered by saitcakmak
mohammad-saber asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mohammad-saber. The default kernel of the SingleTaskGP is defined here

if covar_module is None:
self.covar_module = ScaleKernel(
MaternKernel(
nu=2.5,
ard_num_dims=transformed_X.shape[-1],
batch_shape=self._aug_batch_shape,
lengthscale_prior=GammaPrior(3.0, 6.0),
),
batch_shape=self._aug_batch_shape,
outputscale_prior=GammaPrior(2.0, 0.15),
)

It's an ARD Matern 5/2 kernel with an output scale.

Looking more closely, your question is about passing in a custom kernel. In this case, it will be used as-is, so you should define it with a ScaleKernel as in y…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mohammad-saber
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