Skip to content

Plotting prediction #810

Answered by saitcakmak
stbecet asked this question in Q&A
May 31, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

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 with m(test_x) as above or with m.posterior(test_x), you get the posterior on the function without this added noise. When training a model on torch.rand, the inferred noise level ends up being pretty large (you can check this in m.likelihood.noise), so you get a plot like this.
To add the observation noise to the predictions, …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@stbecet
Comment options

@stbecet
Comment options

@Balandat
Comment options

@stbecet
Comment options

Answer selected by saitcakmak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants