Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for bug that occurs when splitting single-element bins, use default BoTorch kernel for BAxUS. #2165

Closed
wants to merge 1 commit into from

Conversation

LeoIV
Copy link
Contributor

@LeoIV LeoIV commented Jan 5, 2024

This commit does two things:

First, it fixes a bug that occurs when trying to split a bin with a single element.

Also, we now use the default BoTorch Matern kernel instead of using MLE and lengthscale constraints.

Motivation

I received a bug report via email for a slightly different benchmark setup that affects the code in the BAxUS tutorial. The bug occurs in cases when, after splitting, a bin contains only a single element, but other bins contain more than one element. In that case, the previous code attempted to split that bin which later caused an error. This commit fixes this bug and, at the same time, removes the custom Matern kernel we used in the previous version. The kernel does not improve performance but adds overhead to the tutorial.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

I tested this version on multiple benchmark setups to ensure this bug is fixed.

Related PRs

Initial PR for BAxUS tutorial: #1559

…lt BoTorch kernel for BAxUS.

This commit does two things:

First, it fixes bug that occurs when trying to split a bin with a single element.

Also, we now use the default BoTorch Matern kernel instead of using MLE and lengthscale constraints.
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 5, 2024
Copy link
Contributor

@saitcakmak saitcakmak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

we now use the default BoTorch Matern kernel instead of using MLE and lengthscale constraints.

Nice to use the existing modules whenever it makes sense. Easier to maintain :)

@facebook-github-bot
Copy link
Contributor

@saitcakmak has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@saitcakmak merged this pull request in 26d79bc.

stefanpricopie pushed a commit to stefanpricopie/botorch that referenced this pull request Feb 27, 2024
…lt BoTorch kernel for BAxUS. (pytorch#2165)

Summary:
This commit does two things:

First, it fixes a bug that occurs when trying to split a bin with a single element.

Also, we now use the default BoTorch Matern kernel instead of using MLE and lengthscale constraints.

<!--
Thank you for sending the PR! We appreciate you spending the time to make BoTorch better.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to BoTorch here: https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md
-->

## Motivation

I received a bug report via email for a slightly different benchmark setup that affects the code in the BAxUS tutorial. The bug occurs in cases when, after splitting, a bin contains only a single element, but other bins contain more than one element. In that case, the previous code attempted to split that bin which later caused an error. This commit fixes this bug and, at the same time, removes the custom Matern kernel we used in the previous version. The kernel does not improve performance but adds overhead to the tutorial.

### Have you read the [Contributing Guidelines on pull requests](https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md#pull-requests)?

Yes

Pull Request resolved: pytorch#2165

Test Plan:
I tested this version on multiple benchmark setups to ensure this bug is fixed.

## Related PRs

Initial PR for BAxUS tutorial: pytorch#1559

Reviewed By: SebastianAment

Differential Revision: D52718499

Pulled By: saitcakmak

fbshipit-source-id: 7b2af5ec988406b3e482baa3ddf9f0becc17e45c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants