Skip to content

Implementing MC-Based Acquisition function #1692

Answered by saitcakmak
qres asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @qres. You can parse the shape of the posterior samples as sample shape x t-batch shape x q-batch shape x number of outcomes.

For single objective acquisition functions, the default sampler has sample_shape = torch.Size([512]).
In optimize_acqf, raw_samples candidates (total shape of X raw_samples x q-batch x dim, with raw_samples corresponding to the t-batch shape) get randomly generated, the acquisition function is evaluated with these, and num_restarts candidates are selected from these with Boltzmann sampling. So, that's the 512 / 20 dimension you see.
The remaining dimensions are simply the q-batch shape = BATCH_SIZE and the number of outcomes of the model, which is 1.

If you're t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@qres
Comment options

Answer selected by qres
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