Ax icon indicating copy to clipboard operation
Ax copied to clipboard

Update get_trace to work for preference learning experiments

Open shrutipatel31 opened this issue 1 month ago • 2 comments

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 avatar Nov 18 '25 18:11 shrutipatel31

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

meta-codesync[bot] avatar Nov 18 '25 18:11 meta-codesync[bot]

Codecov Report

:x: Patch coverage is 95.16129% with 6 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 96.52%. Comparing base (e26c9d7) to head (d10b696).

Files with missing lines Patch % Lines
ax/service/utils/best_point.py 85.36% 6 Missing :warning:
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     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov-commenter avatar Nov 18 '25 18:11 codecov-commenter