Skip to content

Constraints on model prediction? #2790

Answered by esantorella
samuelkim16 asked this question in Q&A
Discussion options

You must be logged in to vote

BoTorch doesn't currently provide a way to do this out of the box.

You could probably hack this into an MCAcquisitionFunction (e.g. qLogExpectedImprovement) by clipping the samples drawn from the model's posterior, by modifying the posterior's rsample method. I find that approach a little weird since you're modifying the model only for acquisition function optimization and not when fitting it, but it might work.

Another approach would be to give the model an OutcomeTransform that can only produce values in some range. For example, the Log outcome transform provided in BoTorch makes positive predictions. Or you could easily define a log(y - f^* + small_number) outcome transform if you know…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Balandat
Comment options

@samuelkim16
Comment options

@Balandat
Comment options

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