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

make qNIPV not an AnalyticAcquisitionFunction; optimize_acqf support clarity #2286

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Member

Summary:
I put a LogExpectedImprovement instance into optimize_acqf, and when I got an error about it not having an attribute X_pending, I was not sure if this was a bug or if I did something known to be unsupported.

  • Make qNegIntegratedPosteriorVariance inherit from AcquisitionFunction rather than AnalyticAcquisitionFunction, because the functionality it was inheriting from AnalyticAcquisitionFunction was not relevant.
  • qNegIntegratedPosteriorVariance loses an error message about not supporting multi-output with a PosteriorTransform that is not scalarized and gains a unit test showing that it does.

Differential Revision: D55843171

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Apr 6, 2024
@facebook-github-bot
Copy link
Contributor

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

…t clarity (pytorch#2286)

Summary:

I put a `LogExpectedImprovement` instance into `optimize_acqf`, and when I got an error about it not having an attribute `X_pending`, I was not sure if this was a bug or if I did something known to be unsupported.

- Make `qNegIntegratedPosteriorVariance` inherit from `AcquisitionFunction` rather than `AnalyticAcquisitionFunction`, because the functionality it was inheriting from `AnalyticAcquisitionFunction` was not relevant.
- `qNegIntegratedPosteriorVariance` loses an error message about not supporting multi-output with a `PosteriorTransform` that is not scalarized and gains a unit test showing that it does.

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

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

esantorella added a commit to esantorella/botorch that referenced this pull request Apr 6, 2024
…t clarity (pytorch#2286)

Summary:

I put a `LogExpectedImprovement` instance into `optimize_acqf`, and when I got an error about it not having an attribute `X_pending`, I was not sure if this was a bug or if I did something known to be unsupported.

- Make `qNegIntegratedPosteriorVariance` inherit from `AcquisitionFunction` rather than `AnalyticAcquisitionFunction`, because the functionality it was inheriting from `AnalyticAcquisitionFunction` was not relevant.
- `qNegIntegratedPosteriorVariance` loses an error message about not supporting multi-output with a `PosteriorTransform` that is not scalarized and gains a unit test showing that it does.

Differential Revision: D55843171
esantorella added a commit to esantorella/botorch that referenced this pull request Apr 6, 2024
…t clarity (pytorch#2286)

Summary:

I put a `LogExpectedImprovement` instance into `optimize_acqf`, and when I got an error about it not having an attribute `X_pending`, I was not sure if this was a bug or if I did something known to be unsupported.

- Make `qNegIntegratedPosteriorVariance` inherit from `AcquisitionFunction` rather than `AnalyticAcquisitionFunction`, because the functionality it was inheriting from `AnalyticAcquisitionFunction` was not relevant.
- `qNegIntegratedPosteriorVariance` loses an error message about not supporting multi-output with a `PosteriorTransform` that is not scalarized and gains a unit test showing that it does.

Differential Revision: D55843171
Copy link

codecov bot commented Apr 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.97%. Comparing base (968e465) to head (0da045b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2286   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files         197      197           
  Lines       17151    17152    +1     
=======================================
+ Hits        17147    17148    +1     
  Misses          4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in e8cbbae.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants