← All extensions
Sweeps
ivyx✓
Run a hyperparameter sweep and see which point won, through the engine your workspace already has
Sweeps
Run a hyperparameter sweep and see which point won, through the engine your workspace already has. The hub stores nothing of its own: it reads the parameters and metrics your pipeline already declares and ranks the trials that come back.
What you can do
- See what your pipeline can be swept over: the parameters it declares, with the value each one currently has
- Try several values per parameter, and see how many trials that adds up to before you start
- Run the trials in parallel, choosing how many go at a time
- Watch the trial list fill in while the sweep runs
- Rank the trials by the metric you care about, higher or lower being better
- Apply the winner with one click, which puts that point in your workspace and runs your MLOps pipeline over it
- See which parameter moved the result, once the sweep has finished
Requirements
- A sweep engine. MLOps DVC 1.6.0 or newer ships one, and needs a workspace
that is a git repository with
params:andmetrics:declared indvc.yaml. With DVC no extra Python package is needed, because the grid and the worker pool are already part of it. - The MLOps extension, to see which parameter moved the result.
Getting started
- Install this extension and a sweep engine.
- Declare the parameters your pipeline reads and the metrics it writes.
- Open Sweeps with Sweeps: Open from the command palette, type the values to try for each parameter, separated by commas, and press Run the sweep. While it runs, Stop the workers ends it.
- When the trials land, click the best one to apply it and run your pipeline.
Good to know
- It does not guess which number matters. A pipeline that records both an accuracy and a loss gives no clue which one you are optimising, so the panel asks you to choose the metric and direction.
- If your pipeline declares no metrics, trials still run and nothing is ranked, and the panel says so instead of inventing an order.
- A sweep larger than 200 trials is refused rather than trimmed, because a trimmed grid quietly stops varying one of your parameters.
- Trials that ran against an earlier commit are flagged, because their numbers came from different code.