Skip to content

Converting torch mean and var tensors into multi-output posterior objectives for qNoisyExpectedHypervolumeImprovement #2020

Answered by exs-hkenlay
exs-hkenlay asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your help and patience @saitcakmak. I took the PyTorch route as you suggested and managed to get a working solution. I needed to implement some functionality from the Posterior API which are not implemented by TorchPosterior. I also needed to pass a sampler to qNoisyExpectedHypervolumeImprovement because my new posterior class was not registered. For the benefit of anyone else who stumbles across this issue the full code is:

from typing import Tuple

import torch
from botorch.acquisition.multi_objective.monte_carlo import (
    qNoisyExpectedHypervolumeImprovement,
)
from botorch.models.model import Model
from botorch.posteriors.torch import TorchPosterior
from botorch.sampl…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by exs-hkenlay
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #2007 on September 22, 2023 16:15.