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

Remove extraneous current_value computation from input constructor for construct_inputs_qKG #2520

Closed
wants to merge 1 commit into from

Conversation

ltiao
Copy link
Contributor

@ltiao ltiao commented Sep 10, 2024

Summary:
The input constructor construct_inputs_qKG previously computed current_value which is extraneous (it is merely an additive constant in the acquisition function).

However, construct_inputs_qMFKG, which does require an explicit current_value (in the cost-aware setting), was piggy-backing off construct_inputs_qKG, which I suspect is why this persisted.

Having said that, construct_inputs_qKG computes current_value incorrectly for the purposes of construct_inputs_qMFKG anyway (as it failed to take fidelity input dimension into consideration), so it wasn't actually useful or beneficial under any circumstances.

With D62391106, which calculates current_value correctly for construct_inputs_qMFKG, we can safely remove this computation altogether from construct_inputs_qKG

Differential Revision: D62415444

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

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

@facebook-github-bot
Copy link
Contributor

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

ltiao added a commit to ltiao/botorch that referenced this pull request Sep 10, 2024
…for `construct_inputs_qKG` (pytorch#2520)

Summary:
Pull Request resolved: pytorch#2520

The input constructor `construct_inputs_qKG` previously computed `current_value` which is extraneous (it is merely an additive constant in the acquisition function).

However, `construct_inputs_qMFKG`, which *does* require an explicit `current_value` (in the cost-aware setting), was piggy-backing off `construct_inputs_qKG`, which I suspect is why this persisted.

Having said that, `construct_inputs_qKG` computes `current_value` incorrectly for the purposes of  `construct_inputs_qMFKG` anyway (as it failed to take fidelity input dimension into consideration), so it wasn't actually useful or beneficial under any circumstances.

With D62391106, which calculates `current_value` correctly for `construct_inputs_qMFKG`, we can safely remove this computation altogether from `construct_inputs_qKG`

Differential Revision: D62415444
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.98%. Comparing base (167dcb7) to head (8e23e85).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2520   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         193      193           
  Lines       16963    16966    +3     
=======================================
+ Hits        16961    16964    +3     
  Misses          2        2           

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

@facebook-github-bot
Copy link
Contributor

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

ltiao added a commit to ltiao/botorch that referenced this pull request Sep 10, 2024
…for `construct_inputs_qKG` (pytorch#2520)

Summary:
Pull Request resolved: pytorch#2520

The input constructor `construct_inputs_qKG` previously computed `current_value` which is extraneous (it is merely an additive constant in the acquisition function).

However, `construct_inputs_qMFKG`, which *does* require an explicit `current_value` (in the cost-aware setting), was piggy-backing off `construct_inputs_qKG`, which I suspect is why this persisted.

Having said that, `construct_inputs_qKG` computes `current_value` incorrectly for the purposes of  `construct_inputs_qMFKG` anyway (as it failed to take fidelity input dimension into consideration), so it wasn't actually useful or beneficial under any circumstances.

With D62391106, which calculates `current_value` correctly for `construct_inputs_qMFKG`, we can safely remove this computation altogether from `construct_inputs_qKG`

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

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

ltiao added a commit to ltiao/botorch that referenced this pull request Sep 10, 2024
…for `construct_inputs_qKG` (pytorch#2520)

Summary:
Pull Request resolved: pytorch#2520

The input constructor `construct_inputs_qKG` previously computed `current_value` which is extraneous (it is merely an additive constant in the acquisition function).

However, `construct_inputs_qMFKG`, which *does* require an explicit `current_value` (in the cost-aware setting), was piggy-backing off `construct_inputs_qKG`, which I suspect is why this persisted.

Having said that, `construct_inputs_qKG` computes `current_value` incorrectly for the purposes of  `construct_inputs_qMFKG` anyway (as it failed to take fidelity input dimension into consideration), so it wasn't actually useful or beneficial under any circumstances.

With D62391106, which calculates `current_value` correctly for `construct_inputs_qMFKG`, we can safely remove this computation altogether from `construct_inputs_qKG`

Reviewed By: Balandat

Differential Revision: D62415444
…for `construct_inputs_qKG` (pytorch#2520)

Summary:
Pull Request resolved: pytorch#2520

The input constructor `construct_inputs_qKG` previously computed `current_value` which is extraneous (it is merely an additive constant in the acquisition function).

However, `construct_inputs_qMFKG`, which *does* require an explicit `current_value` (in the cost-aware setting), was piggy-backing off `construct_inputs_qKG`, which I suspect is why this persisted.

Having said that, `construct_inputs_qKG` computes `current_value` incorrectly for the purposes of  `construct_inputs_qMFKG` anyway (as it failed to take fidelity input dimension into consideration), so it wasn't actually useful or beneficial under any circumstances.

With D62391106, which calculates `current_value` correctly for `construct_inputs_qMFKG`, we can safely remove this computation altogether from `construct_inputs_qKG`

Reviewed By: Balandat

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ad4a93a.

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