Skip to content

Support ScalarizedOutcomeConstraint in _prepare_p_feasible#4856

Closed
mgrange1998 wants to merge 1 commit into
facebook:mainfrom
mgrange1998:export-D92185974
Closed

Support ScalarizedOutcomeConstraint in _prepare_p_feasible#4856
mgrange1998 wants to merge 1 commit into
facebook:mainfrom
mgrange1998:export-D92185974

Conversation

@mgrange1998
Copy link
Copy Markdown
Contributor

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

@meta-cla meta-cla Bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 4, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 4, 2026

@mgrange1998 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92185974.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 91.80328% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.75%. Comparing base (ce4dc42) to head (c170d0e).

Files with missing lines Patch % Lines
ax/analysis/utils.py 88.63% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4856   +/-   ##
=======================================
  Coverage   96.75%   96.75%           
=======================================
  Files         591      591           
  Lines       61874    61909   +35     
=======================================
+ Hits        59869    59903   +34     
- Misses       2005     2006    +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

mgrange1998 added a commit to mgrange1998/Ax that referenced this pull request Feb 9, 2026
…k#4856)

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.

Reviewed By: ItsMrLin

Differential Revision: D92185974
…k#4856)

Summary:
Pull Request resolved: facebook#4856

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.

Reviewed By: ItsMrLin

Differential Revision: D92185974
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Feb 10, 2026

This pull request has been merged in dc12eec.

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 meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants