Derivative Enabled GPs with qKG #2129
-
Question about qKnowledgeGradient in botorchHello, I am encountering an issue while using qKnowledgeGradient in botorch, as discussed in #1626 . I've built a mockup example based on the provided example by @Balandat (see #1626 (comment)), implementing a test function While it works with Here is my implementation:
However, I get the following error:
I believe I might have misunderstood the usage of Could someone kindly guide me on how to resolve this problem? Thank you in advance for your help! Best regards. My Notebook: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @michad1111. The issue seems to be the |
Beta Was this translation helpful? Give feedback.
Hi @michad1111. The issue seems to be the
GPWithDerivatives
model does not support fantasizing. If I try to fantasize usingmodel.fantasize(train_x, SobolQMCNormalSampler(torch.Size([8])))
, I get similar errors due to shapes of tensors not matching. Unfortunately, this is not something we can handle using theMCObjective
orPosteriorTransform
classes. My guess is that thecondition_on_observation
method of the model (in particular theget_fantasy_strategy
method) would have to be rewritten to support fantasizing from the derivative GP.