Skip to content

Search space editing#4945

Open
andycylmeta wants to merge 1 commit intofacebook:mainfrom
andycylmeta:export-D93766951
Open

Search space editing#4945
andycylmeta wants to merge 1 commit intofacebook:mainfrom
andycylmeta:export-D93766951

Conversation

@andycylmeta
Copy link
Contributor

Summary: Currently, when updating search spaces for an experiment, the entire search space needs to be specified. There are feedbacks mentioning this is hard to use, especially when the search space has many parameters. This diff ads a method "udpate_parameters" which only updates the values for an existing range parameters in the the search space.

Differential Revision: D93766951

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

meta-codesync bot commented Feb 24, 2026

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

@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2026

Codecov Report

❌ Patch coverage is 97.72727% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.83%. Comparing base (9e1bb8f) to head (bea51d9).

Files with missing lines Patch % Lines
ax/service/ax_client.py 93.33% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4945   +/-   ##
=======================================
  Coverage   96.83%   96.83%           
=======================================
  Files         594      594           
  Lines       62877    62965   +88     
=======================================
+ Hits        60885    60971   +86     
- Misses       1992     1994    +2     

☔ 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.

Summary:

This diff adds methods for search space manipulation for AxClient for convenience:
1. add_parameters: add parameters into search spaces
2. update_parameters: update the bounds for existing range parameters in the search space.
3. disable_parameters: Disable parameters in the experiment. This allows narrowing the search space after the experiment has run some trials.

Differential Revision: D93766951
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 meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants