-
Notifications
You must be signed in to change notification settings - Fork 439
log values for HVKG using LogEHVI #2974
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D80263869 |
bf7a89b
to
b447004
Compare
Summary: HKVG to output log values when _log=True using the LogEHVI value function. Also adds a _log flag to InverseCostWeightedUtility to output utilities in log-space. if _log=True, it assumes that * current_value is in log-space * cost_aware_utility outputs in log-space (raises an error if cost_aware_utility does not have a _log flag or if its _log=False). Note that InverseCostWeightedUtility does a logarithmic transform for the inputted costs; assumes that inputted costs are in the original space. This is so that one does not need to make any direct modification to the cost fn, and because InverseCostWeightedUtility already does some pre-processing to the costs (e.g. clipping). tldr: HKVG assumes all of its inputs are logged, but InverseCostWeightedUtility does not. Differential Revision: D80263869
This pull request was exported from Phabricator. Differential Revision: D80263869 |
b447004
to
4b944e0
Compare
Summary: HKVG to output log values when _log=True using the LogEHVI value function. Also adds a _log flag to InverseCostWeightedUtility to output utilities in log-space. if _log=True, it assumes that * current_value is in log-space * cost_aware_utility outputs in log-space (raises an error if cost_aware_utility does not have a _log flag or if its _log=False). Note that InverseCostWeightedUtility does a logarithmic transform for the inputted costs; assumes that inputted costs are in the original space. This is so that one does not need to make any direct modification to the cost fn, and because InverseCostWeightedUtility already does some pre-processing to the costs (e.g. clipping). tldr: HKVG assumes all of its inputs are logged, but InverseCostWeightedUtility does not. Differential Revision: D80263869
This pull request was exported from Phabricator. Differential Revision: D80263869 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2974 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 216 216
Lines 20294 20310 +16
=========================================
+ Hits 20294 20310 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary: HKVG to output log values when _log=True using the LogEHVI value function. Also adds a _log flag to InverseCostWeightedUtility to output utilities in log-space. if _log=True, it assumes that * current_value is in log-space * cost_aware_utility outputs in log-space (raises an error if cost_aware_utility does not have a _log flag or if its _log=False). Note that InverseCostWeightedUtility does a logarithmic transform for the inputted costs; assumes that inputted costs are in the original space. This is so that one does not need to make any direct modification to the cost fn, and because InverseCostWeightedUtility already does some pre-processing to the costs (e.g. clipping). tldr: HKVG assumes all of its inputs are logged, but InverseCostWeightedUtility does not. Reviewed By: SebastianAment Differential Revision: D80263869
4b944e0
to
02bb001
Compare
This pull request was exported from Phabricator. Differential Revision: D80263869 |
Summary: HKVG to output log values when _log=True using the LogEHVI value function. Also adds a _log flag to InverseCostWeightedUtility to output utilities in log-space. if _log=True, it assumes that * current_value is in log-space * cost_aware_utility outputs in log-space (raises an error if cost_aware_utility does not have a _log flag or if its _log=False). Note that InverseCostWeightedUtility does a logarithmic transform for the inputted costs; assumes that inputted costs are in the original space. This is so that one does not need to make any direct modification to the cost fn, and because InverseCostWeightedUtility already does some pre-processing to the costs (e.g. clipping). tldr: HKVG assumes all of its inputs are logged, but InverseCostWeightedUtility does not. Reviewed By: SebastianAment Differential Revision: D80263869
02bb001
to
510dfc5
Compare
This pull request was exported from Phabricator. Differential Revision: D80263869 |
This pull request has been merged in b1097c6. |
Summary:
HKVG to output log values when _log=True using the LogEHVI value function.
Also adds a _log flag to InverseCostWeightedUtility to output utilities in log-space.
if _log=True, it assumes that
Note that InverseCostWeightedUtility does a logarithmic transform for the inputted costs; assumes that inputted costs are in the original space. This is so that one does not need to make any direct modification to the cost fn, and because InverseCostWeightedUtility already does some pre-processing to the costs (e.g. clipping).
tldr: HKVG assumes all of its inputs are logged, but InverseCostWeightedUtility does not.
Rollback Plan:
Differential Revision: D80263869