[Question] How Lengthscale prior affects the model training process? #1782
-
Hi, I have a misunderstanding about Kernel When I set Kernel My understanding is that kernel lengthscale is obtained by optimizing Marginal Likelihood through training process. I would like to ask if Thank you for your time to read my question. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The log likelihood of the prior wrt the lengthscale is added into the log marginal likelihood during the training process. Note that to set the lengthscale to a sample from the prior, you'll still have to draw a sample from the prior itself |
Beta Was this translation helpful? Give feedback.
The log likelihood of the prior wrt the lengthscale is added into the log marginal likelihood during the training process.
Note that to set the lengthscale to a sample from the prior, you'll still have to draw a sample from the prior itself
covar.lengthscale = covar.lengthscale_prior.rsample()
.