Choose a search algorithm
The search algorithm chooses the next parameter values to evaluate. Your container measures the result. Start with Bayesian (TPE) unless you need a specific search pattern.
Available search behavior
Section titled “Available search behavior”| Selection | What it runs | When to use it |
|---|---|---|
Bayesian (bayesian) |
Tree-structured Parzen Estimator (TPE), with initial exploration before learning from results. | A starting point for numeric or mixed parameter spaces. |
Random (random) |
Independent random sampling, with an optional seed. | A baseline for comparison with adaptive search. |
Grid (grid) |
An enumerated grid of categorical choices and numeric ranges with steps. | Small, discrete spaces where you need to cover each combination. |
CMA-ES (cma-es) |
A covariance-adapting sampler that requires exactly one objective. | Primarily continuous searches; verify compatibility before a large run. |
Sobol (sobol) |
A scrambled Sobol sequence for numerical coverage. | Space-filling exploration of numerical inputs. |
Grid size grows multiplicatively. Four choices for each of five parameters create 4⁵ = 1,024 combinations. Use explicit numeric steps and check the total before launching.
Trial budget and parallelism
Section titled “Trial budget and parallelism”TPE starts with exploratory trials; its default startup budget is 10. A ten-trial quickstart checks your integration but does not demonstrate a long adaptive search.
Only completed trials with usable objective metrics can inform future suggestions. More parallel trials can finish a batch sooner, but suggestions made together cannot learn from one another’s unfinished results. Increase parallelism after confirming the workload and metric collection.
Trial limits, failure limits, machine capacity, and compute eligibility apply to every algorithm. A grid can finish before the requested trial count when all combinations are exhausted.
Multiple objectives
Section titled “Multiple objectives”Each objective keeps its own maximize/minimize direction. HyperOptimizer does not create an implicit weighted score or a single overall winner. Start with TPE for multiple objectives; support differs by sampler, so do not assume all algorithms accept every configuration.
If you want a single ranking, calculate a documented composite metric in your program and configure that as the objective. See objective metrics.
Next steps
Section titled “Next steps”Define your search space, then create an experiment. After it completes, compare the results before widening the search.