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
GPWithDerivativesmodel 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 theMCObjectiveorPosteriorTransformclasses. My guess is that thecondition_on_observationmethod of the model (in particular theget_fantasy_strategymethod) would have to be rewritten to support fantasizing from the derivative GP.