Uncertainty calculation of Deep GP incorrect? #1862
Unanswered
fweberling
asked this question in
Q&A
Replies: 1 comment 6 replies
-
The output of a DeepGP model is non-deterministic, so it is possible that the different outputs are due to randomness and not due to different model inputs. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
the Deep GP implementation has very weird predicted variances. I used the implementation of the Multitask 2-layer Deep GP tutorial and looked at regions away from the data points and used a simple scaled RBF kernel instead of the Matern kernel besides that I didn't change anything in the code. Interestingly, the variance of a specific test point close to the training points changed when I increased the window size and the resolution in torch.linspace(0,1,51) to torch.linspace(-3,4,200) which cannot be right.
Here, an interval of 200 test points from [0,1] is used. The predicted variance of the test point right in the middle of each image is var[100,:] = [0.1145, 0.1110, 0.1353, 0.1099] where each element corresponds to the specific task:
Here, an interval of 200 test points from [-3, 4] is used. The predicted variance of the same test point right in the middle of each image changes to var[100,:] = [0.6471, 0.8840, 0.7339, 0.5928] where each element corresponds to the specific task. This cannot be right.
When I now consider the same implementation of the Deep GP but now only with one layer the uncertainties also change as previously stated for the test point in the middle of the plot and the uncertainties away from the data point look very weird. They have a wave-like structure.
var[100,:] = tensor([0.0520, 0.0501, 0.0608, 0.0536])
var[100,:] = tensor([1.1507, 1.1499, 1.1616, 1.1552])
Is this possibly a bug? I have not changed the code of the tutorial. I only adjusted the resolution of the test point and the interval in torch.linspace(0,1, 51).
I would love to get your feedback!
Friedrich
Beta Was this translation helpful? Give feedback.
All reactions