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

Pull out mixin for setting X_pending in acquisition functions #2332

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

esantorella
Copy link
Contributor

Summary:
Formerly, all subclasses of Acquisition had a method set_X_pending, even if they did not support pending points. This confused me while writing tests for optimizing acquisition functions.

  • Pulled out a mixin XPendingMixin so that classes only have the method set_X_pending where it is functional and appropriate
  • Removed "UnsupportedError" overrides from classes that no longer have a set_X_pending method
  • Clarified which classes are supported in optimize_acqf and similar functions; added more precise type hints.

Differential Revision: D55843962

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55843962

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Apr 6, 2024
Summary:
X-link: facebookexternal/botorch_fb#19

X-link: pytorch/botorch#2287

Formerly, all subclasses of `Acquisition` had a method `set_X_pending`, even if they did not support pending points. This confused me while writing tests for optimizing acquisition functions.
- Pulled out a mixin `XPendingMixin` so that classes only have the method `set_X_pending` where it is functional and appropriate
- Removed "UnsupportedError" overrides from classes that no longer have a `set_X_pending` method
- Clarified which classes are supported in `optimize_acqf` and similar functions; added more precise type hints.

Differential Revision: D55843962
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55843962

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. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants