example of starting ax experiment from dataframe data (#5098)#5098
Closed
sdaulton wants to merge 1 commit into
Closed
example of starting ax experiment from dataframe data (#5098)#5098sdaulton wants to merge 1 commit into
sdaulton wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5098 +/- ##
=======================================
Coverage 96.41% 96.41%
=======================================
Files 613 613
Lines 68131 68131
=======================================
Hits 65687 65687
Misses 2444 2444 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
sdaulton
added a commit
to sdaulton/Ax-1
that referenced
this pull request
Mar 30, 2026
Summary: This diff adds a new Ax tutorial notebook demonstrating how to initialize an experiment from pre-existing DataFrame data. **Key Features Covered:** 1. **Attaching Historical Trials** — Shows how to use `client.attach_trial()` and `client.complete_trial()` to import historical experiment data (arms with parameters and their observed metric values) from a pandas DataFrame 2. **Warm-Starting Bayesian Optimization** — After attaching historical data, uses Ax's `Client` to generate new candidate trials with model-based optimization (BoTorch) 3. **Analysis & Visualization** — Demonstrates Ax's built-in analysis tools: cross-validation plots, utility progression tracking, and arm effects visualization (both observed and predicted) **Use Cases:** - Migrating experiments run outside of Ax into the Ax framework - Leveraging existing CSV/database data to warm-start Bayesian optimization - Building on historical configurations and outcomes **Technical Details:** - Uses the Branin function as a benchmark optimization problem (2 parameters, known global minimum ≈ 0.398) - Creates 15 quasi-random historical evaluations and attaches them as completed trials - Generates and evaluates a new candidate using `client.get_next_trial()` - Compares predicted vs. observed arm effects Reviewed By: andycylmeta Differential Revision: D93760064
6d499e0 to
d6dc1f6
Compare
sdaulton
added a commit
to sdaulton/Ax-1
that referenced
this pull request
Mar 30, 2026
Summary: This diff adds a new Ax tutorial notebook demonstrating how to initialize an experiment from pre-existing DataFrame data. **Key Features Covered:** 1. **Attaching Historical Trials** — Shows how to use `client.attach_trial()` and `client.complete_trial()` to import historical experiment data (arms with parameters and their observed metric values) from a pandas DataFrame 2. **Warm-Starting Bayesian Optimization** — After attaching historical data, uses Ax's `Client` to generate new candidate trials with model-based optimization (BoTorch) 3. **Analysis & Visualization** — Demonstrates Ax's built-in analysis tools: cross-validation plots, utility progression tracking, and arm effects visualization (both observed and predicted) **Use Cases:** - Migrating experiments run outside of Ax into the Ax framework - Leveraging existing CSV/database data to warm-start Bayesian optimization - Building on historical configurations and outcomes **Technical Details:** - Uses the Branin function as a benchmark optimization problem (2 parameters, known global minimum ≈ 0.398) - Creates 15 quasi-random historical evaluations and attaches them as completed trials - Generates and evaluates a new candidate using `client.get_next_trial()` - Compares predicted vs. observed arm effects Reviewed By: andycylmeta Differential Revision: D93760064
d6dc1f6 to
e9a48ca
Compare
Summary: Pull Request resolved: facebook#5098 This diff adds a new Ax tutorial notebook demonstrating how to initialize an experiment from pre-existing DataFrame data. **Key Features Covered:** 1. **Attaching Historical Trials** — Shows how to use `client.attach_trial()` and `client.complete_trial()` to import historical experiment data (arms with parameters and their observed metric values) from a pandas DataFrame 2. **Warm-Starting Bayesian Optimization** — After attaching historical data, uses Ax's `Client` to generate new candidate trials with model-based optimization (BoTorch) 3. **Analysis & Visualization** — Demonstrates Ax's built-in analysis tools: cross-validation plots, utility progression tracking, and arm effects visualization (both observed and predicted) **Use Cases:** - Migrating experiments run outside of Ax into the Ax framework - Leveraging existing CSV/database data to warm-start Bayesian optimization - Building on historical configurations and outcomes **Technical Details:** - Uses the Branin function as a benchmark optimization problem (2 parameters, known global minimum ≈ 0.398) - Creates 15 quasi-random historical evaluations and attaches them as completed trials - Generates and evaluates a new candidate using `client.get_next_trial()` - Compares predicted vs. observed arm effects Reviewed By: andycylmeta Differential Revision: D93760064
e9a48ca to
5fe7341
Compare
|
This pull request has been merged in 7c67537. |
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:
This diff adds a new Ax tutorial notebook demonstrating how to initialize an experiment from pre-existing DataFrame data.
Key Features Covered:
client.attach_trial()andclient.complete_trial()to import historical experiment data (arms with parameters and their observed metric values) from a pandas DataFrameClientto generate new candidate trials with model-based optimization (BoTorch)Use Cases:
Technical Details:
client.get_next_trial()Reviewed By: andycylmeta
Differential Revision: D93760064