Plotting prediction #810
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @stbecet. What you're plotting above is the predictive (posterior) distribution of the true function, without the (inferred) observation noise. |
Beta Was this translation helpful? Give feedback.
Hi @stbecet. What you're plotting above is the predictive (posterior) distribution of the true function, without the (inferred) observation noise.
SingleTaskGP
model assumes that the observations are with homoscedastic Gaussian noise with unknown noise level, and infers the noise level internally during model fit. When you call posterior on the trained model, either withm(test_x)
as above or withm.posterior(test_x)
, you get the posterior on the function without this added noise. When training a model ontorch.rand
, the inferred noise level ends up being pretty large (you can check this inm.likelihood.noise
), so you get a plot like this.To add the observation noise to the predictions, …