[Question] When using "SingleTaskGP", does it add OutputScale to the kernel automatically? #953
-
Hi, thank you very much to read my question. I have a question about adding OutputScale prameter to the kernel when using "SingleTaskGP". In GPyTorch, we usually add OutputScale to the Kernel using
I was wondering if "SingleTaskGP" class multiplies kernel by OutputScale automatically, or I should define kernel like below:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @mohammad-saber. The default kernel of the 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 |
Beta Was this translation helpful? Give feedback.
Hi @mohammad-saber. The default kernel of the
SingleTaskGP
is defined herehttps://github.com/pytorch/botorch/blob/70143a73fec92d0df9ed6707baedf9215b8ac44d/botorch/models/gp_regression.py#L123-L133
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 your example.