-
Hi, It seems like the default behavior of the botorch/botorch/models/pairwise_gp.py Lines 1022 to 1030 in 67f34cb This means that when one does inference on datapoints that share samples with What is the intended way to predict the posterior distribution over samples that also exist in Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @florisvdf, thanks for reaching out. Inside If you wish you may explicitly calculate the training data posterior as Is there a particular example you are running into issue with using |
Beta Was this translation helpful? Give feedback.
-
Hi @ItsMrLin, I think I should have provided a bit more detail about the problem that I’m running into and how this relates to the implementation of Scenario 3 is where I think problems arise. For that scenario, I wrote what I think reflects the behavior of I should also note that I’m a newbie when it comes to GPs and that I’m definitely not well versed in linear algebra, so please let me know if I’m making any conceptual mistakes. Scenario 1: Passing only train inputsRetrieve Scenario 2: Passing only test inputsRetrieve Scenario 3: Passing new inputs that may contain training samplesWhat I think happens in
|
Beta Was this translation helpful? Give feedback.
-
Hi @ItsMrLin, do you have the time to take a look at this? |
Beta Was this translation helpful? Give feedback.
Hi @florisvdf, sorry to hear that bigger jitter doesn't help. We have seen similar situation happening before when using an impropriate kernel. Using a different
covar_module
could be another thing worth trying.re: why the default behavior of the PairwiseGP is not to eliminate overlapping training samples from the kernel matrix -- in general, we are trying to stay faithful to the user's input. When the user is asking for the posterior over a set of points (including the training data or not), their expectation is to receive the posterior over the set of points, instead of a subset of them.
If you end up being able to calculate the posterior of only training samples separately from the te…