Skip to content

about optimize_acqf() #1264

Answered by saitcakmak
LiuYang-1997 asked this question in Q&A
Jun 24, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @LiuYang-1997 . This seems to work for me. Maybe it is just a numerical issue due to the specific problem you're trying to optimize? I'd try using dtype=torch.double for all the arguments you pass into SingleTaskGP, the acquisition function & optimize_acqf. The improved numerical precision typically helps with these issues.

Here's what I ran to replicate the issue:

from typing import Dict, Optional, Tuple, Union

import torch
from botorch.acquisition.analytic import AnalyticAcquisitionFunction
from botorch.acquisition.objective import PosteriorTransform
from botorch.fit import fit_gpytorch_model
from botorch.models import SingleTaskGP
from botorch.models.model import Model
from botorch…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@LiuYang-1997
Comment options

@saitcakmak
Comment options

@LiuYang-1997
Comment options

Answer selected by saitcakmak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants