Optimize a parameter sweep from its Parameters card - #9650
Draft
kube wants to merge 4 commits into
Draft
Conversation
…d let an optimizer evaluate trials through it
… in purple and document the idle sweep and its visited-point surface
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
kube
added this pull request to stack #9549
September 10, 2026 17:27
…ep in the create drawer's note
1 task
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.
Important
Experimental
Behind the Parameter sweeps and In-browser optimization feature flags.
Summary
Before this PR, a parameter sweep computed on its own from the moment it was created: the selection ran over the full ranges, and the Surface card sampled an eleven-by-eleven grid of the two shown parameters in the background, coarse to fine, on a CPU lane of its own. Optimizing the same ranges meant leaving the Experiments tab, recreating the search in the Optimizations tab, and running a study that computed everything again.
This PR makes a sweep compute only what is selected, and lets its Parameters card hand the selection to the optimizer. A fresh sweep sits idle until a control moves, the plot is clicked, or Optimize is pressed. The Surface draws the points the sweep has computed, dots with the field interpolated between them and a ring at the point computing. Optimize asks for a metric, a direction and a step count, then starts an in-browser study whose trials are evaluated through the sweep's own compute: each step moves the sliders to the suggested point, computes eight runs there, and reads the metric. While the study runs the card is purple with a glow, its controls follow the steps disabled, and Stop ends it; a finished study parks the sweep on the best point, which then refines to the run budget.
Links
Changes
Sweep session
navigateTowith arunCapresolves once the point has its runsnavigateSweepandsweep.visitedSurface
SweepSurfacedraws visited pointssurfaceGridCoordinateandmergeSurfaceFieldsmove toshared/surface-field.tsOptimizer
createOptimizationwith asweepoption evaluates trials through a sweepParameters card
SweepOptimizeControlin the card's headeruseSweepOptimizerbuilds the manifest from the experimentSweepNavigatorfollows a studyoptimizingchart card toneKnown issues
Next steps
Test coverage
sweep-session.test.ts:create-sweep-trial-evaluator.test.ts:visited-field.test.ts:experiment-results.test.tsx:view-optimization-drawer.test.tsx,view-experiment-drawer.test.tsx,drawer-frame.test.tsx,chart-card.test.tsx:How to test
populationandinfected_ratio