Basic SingleTaskGP fit question #1195
-
Hi Everyone, I'm getting started with botorch and I'm playing with fitting a SingleTaskGP to the noisy sinusoidal data described here: https://botorch.org/v/0.1.0/tutorials/fit_model_with_torch_optimizer For a small number of sample points, like 10-20, the mean and confidence intervals look ok but for the same code with a large number of points, 200, 500, the confidence interval is too small. I've attached the code and its output plot. What am I doing wrong? Thanks in advance, Here is the code: import math N = 500 def test():
if name == 'main': and here is a sample output: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I don't know why the code snippet came out that way. |
Beta Was this translation helpful? Give feedback.
-
Hi Dave! What you're plotting is the mean and confidence interval for the underlying sinusoidal function. It doesn't include the predicted observation noise. To get the predictions with the observation noise included, you can use |
Beta Was this translation helpful? Give feedback.
Hi Dave! What you're plotting is the mean and confidence interval for the underlying sinusoidal function. It doesn't include the predicted observation noise. To get the predictions with the observation noise included, you can use
posterior = gp.posterior(test_X, observation_noise=True)
.