-
Notifications
You must be signed in to change notification settings - Fork 357
Update get_trace to work for preference learning experiments #4553
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
Open
shrutipatel31
wants to merge
2
commits into
facebook:main
Choose a base branch
from
shrutipatel31:export-D87347126
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
|
@shrutipatel31 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87347126. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4553 +/- ##
==========================================
+ Coverage 96.50% 96.52% +0.01%
==========================================
Files 557 557
Lines 57359 57479 +120
==========================================
+ Hits 55356 55480 +124
+ Misses 2003 1999 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 18, 2025
…k#4553) Summary: This diff adds a new property to the `Experiment` class called `is_preference_learning_problem`. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is a `PreferenceOptimizationConfig` or if there is a `PE_EXPERIMENT` (preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax. Differential Revision: D87347126
eeef084 to
a0eefff
Compare
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 18, 2025
…k#4553) Summary: This diff adds a new property to the `Experiment` class called `is_preference_learning_problem`. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is a `PreferenceOptimizationConfig` or if there is a `PE_EXPERIMENT` (preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 18, 2025
…k#4553) Summary: This diff adds a new property to the `Experiment` class called `is_preference_learning_problem`. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is a `PreferenceOptimizationConfig` or if there is a `PE_EXPERIMENT` (preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax. Differential Revision: D87347126
a0eefff to
7bab648
Compare
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 18, 2025
…k#4553) Summary: This diff adds a new property to the `Experiment` class called `is_preference_learning_problem`. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is a `PreferenceOptimizationConfig` or if there is a `PE_EXPERIMENT` (preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 18, 2025
…k#4553) Summary: This diff adds a new property to the `Experiment` class called `is_preference_learning_problem`. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is a `PreferenceOptimizationConfig` or if there is a `PE_EXPERIMENT` (preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 19, 2025
…k#4553) Summary: This diff adds a new property to the `Experiment` class called `is_preference_learning_problem`. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is a `PreferenceOptimizationConfig` or if there is a `PE_EXPERIMENT` (preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax. Differential Revision: D87347126
7bab648 to
044a625
Compare
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 19, 2025
…k#4553) Summary: This diff adds a new property to the `Experiment` class called `is_preference_learning_problem`. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is a `PreferenceOptimizationConfig` or if there is a `PE_EXPERIMENT` (preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 20, 2025
…k#4553) Summary: This diff adds a new property to the `Experiment` class called `is_preference_learning_problem`. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is a `PreferenceOptimizationConfig` or if there is a `PE_EXPERIMENT` (preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax. Differential Revision: D87347126
a4d06e6 to
32a0cae
Compare
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 20, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 20, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
ad9f25a to
90c23c2
Compare
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 20, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 23, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
d0bf970 to
f67ae09
Compare
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 23, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 23, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 23, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 24, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
…book#4566) Summary: `get_trace` will be used in getting trace for plotting New UtilityProgression Analysis (as a part of AxSweep plots migration to Ax Analyses). Following changes have been made to enable trace compution for the new analysis. 1. Add flag to `get_trace` helper: We need to have `status_quo` not be filtered from the trace to match what AxSweep currently shows. 2. Optimize `get_trace` to skip `derelativize_opt_config` when there are no relative constraints: This avoids unnecessary data pivoting that fails with duplicate (trial_index, arm_name) entries common in multi-objective experiments where each arm has multiple metrics. Without this fix, the pandas pivot operation throws "`ValueError:` Index contains duplicate entries, cannot reshape", causing `get_trace` to fail. Since derelativization is only needed for constraints relative to a status quo baseline, it's safely skipped when all constraints are absolute. Differential Revision: D87516104
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
f67ae09 to
d10b696
Compare
shrutipatel31
added a commit
to shrutipatel31/Ax
that referenced
this pull request
Nov 25, 2025
Summary: This diff updates the `get_trace` function in `ax/service/utils/best_point.py` to support preference learning (BOPE) experiments with `PreferenceOptimizationConfig`. When a BOPE experiment has an associated PE_EXPERIMENT auxiliary experiment with preference data, `get_trace` now: 1. Fits a PairwiseGP preference model to the PE_EXPERIMENT data 2. Uses the learned preference model to predict utility values for each arm's metric values 3. Returns a trace based on predicted utilities If the PE_EXPERIMENT is missing or has no data, the function gracefully falls back to standard hypervolume computation for multi-objective optimization. Differential Revision: D87347126
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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: This diff adds a new property to the
Experimentclass calledis_preference_learning_problem. This property checks if the experiment is a preference learning (BOPE) experiment by checking if the optimization config is aPreferenceOptimizationConfigor if there is aPE_EXPERIMENT(preference exploration) auxiliary experiment attached. This property is useful for identifying preference learning experiments in Ax.Differential Revision: D87347126