Support ScalarizedOutcomeConstraint in _prepare_p_feasible#4856
Open
mgrange1998 wants to merge 1 commit intofacebook:mainfrom
Open
Support ScalarizedOutcomeConstraint in _prepare_p_feasible#4856mgrange1998 wants to merge 1 commit intofacebook:mainfrom
ScalarizedOutcomeConstraint in _prepare_p_feasible#4856mgrange1998 wants to merge 1 commit intofacebook:mainfrom
Conversation
Summary:
Implementing support for ScalarizedOutcomeConstraint in _prepare_p_feasible and _prepare_p_feasible_per_constraint as specified in the the task T235432214
1. Modified _prepare_p_feasible (lines 621-642): Replaced the old oc_names loop with direct handling that uses _get_scalarized_constraint_mean_and_sem for ScalarizedOutcomeConstraint instances. This removes the TODO comment for T235432214
2. Modified _prepare_p_feasible_per_constraint (lines 706-749): Applied the same pattern to properly compute mean/sigma for scalarized constraints using the helper function.
Differential Revision: D92185974
|
@mgrange1998 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92185974. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4856 +/- ##
==========================================
- Coverage 96.76% 96.75% -0.01%
==========================================
Files 589 589
Lines 61832 61881 +49
==========================================
+ Hits 59830 59876 +46
- Misses 2002 2005 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Implementing support for ScalarizedOutcomeConstraint in _prepare_p_feasible and _prepare_p_feasible_per_constraint as specified in the the task T235432214
Modified _prepare_p_feasible (lines 621-642): Replaced the old oc_names loop with direct handling that uses _get_scalarized_constraint_mean_and_sem for ScalarizedOutcomeConstraint instances. This removes the TODO comment for T235432214
Modified _prepare_p_feasible_per_constraint (lines 706-749): Applied the same pattern to properly compute mean/sigma for scalarized constraints using the helper function.
Differential Revision: D92185974