-
Notifications
You must be signed in to change notification settings - Fork 400
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D62415444 |
This pull request was exported from Phabricator. 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` Differential Revision: D62415444
d4a5ff6
to
b3f43d5
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
This pull request was exported from Phabricator. 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` Differential Revision: D62415444
b3f43d5
to
8feb0c5
Compare
This pull request was exported from Phabricator. 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
8feb0c5
to
fdb718e
Compare
…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
This pull request was exported from Phabricator. Differential Revision: D62415444 |
fdb718e
to
8e23e85
Compare
This pull request has been merged in ad4a93a. |
Summary:
The input constructor
construct_inputs_qKG
previously computedcurrent_value
which is extraneous (it is merely an additive constant in the acquisition function).However,
construct_inputs_qMFKG
, which does require an explicitcurrent_value
(in the cost-aware setting), was piggy-backing offconstruct_inputs_qKG
, which I suspect is why this persisted.Having said that,
construct_inputs_qKG
computescurrent_value
incorrectly for the purposes ofconstruct_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 forconstruct_inputs_qMFKG
, we can safely remove this computation altogether fromconstruct_inputs_qKG
Differential Revision: D62415444