Optimizers#
Hyperactive provides 31 algorithms across 5 categories and 3 backends. Optimizers navigate the search space to find optimal parameters. Each implements a different strategy for balancing exploration (trying diverse regions) and exploitation (refining promising solutions). Local search methods like Hill Climbing work well for smooth landscapes. Population-based methods handle multiple local optima. Model-based methods like Bayesian Optimization minimize evaluations for expensive objective functions.
Algorithm Landscape#
Quick Selection Guide#
Not sure which optimizer to use? Start here:
Use: RandomSearch or HillClimbing
Fast, simple, good starting point for any problem.
Use: BayesianOptimizer or TPEOptimizer
Learn from past evaluations, minimize function calls.
Use: GeneticAlgorithm or DifferentialEvolution
Population-based methods escape local traps.
Use: GridSearch
Exhaustive coverage when feasible (<1000 combinations).
Tip
Always run RandomSearch first to establish a baseline and understand your
objective landscape before trying more sophisticated algorithms.
Algorithm Categories#
5 algorithms
Explore neighborhoods of current solutions. Fast but may get stuck in local optima.
HillClimbing, SimulatedAnnealing, StochasticHillClimbing, RepulsingHillClimbing, DownhillSimplex
4 algorithms
Explore the entire search space systematically or randomly.
RandomSearch, GridSearch, RandomRestartHillClimbing, Powell’s Method
6 algorithms
Evolve multiple candidate solutions together. Excellent for complex landscapes.
ParticleSwarm, GeneticAlgorithm, EvolutionStrategy, DifferentialEvolution, ParallelTempering, SpiralOptimization
5 algorithms
Build surrogate models to guide search. Best for expensive evaluations.
BayesianOptimizer, TPE, ForestOptimizer, Lipschitz, DIRECT
8 algorithms
Wrappers for Optuna’s powerful samplers with Hyperactive’s interface.
TPEOptimizer, CmaEsOptimizer, GPOptimizer, NSGAIIOptimizer, and more
Scenario Reference#
Detailed recommendations based on problem characteristics:
Scenario |
Recommended Optimizers |
Why |
|---|---|---|
Quick baseline |
|
Fast, simple, good for initial exploration |
Expensive evaluations |
|
Learn from past evaluations, minimize function calls |
Large search space |
|
Good global coverage without exhaustive search |
Multi-modal landscape |
|
Population-based methods avoid local optima |
Small search space |
|
Exhaustive coverage when feasible |
Continuous parameters |
|
Designed for smooth, continuous spaces |
Mixed parameter types |
|
Handle categorical + continuous well |
Configuration#
All optimizers share common parameters and configuration options.
See also
Optimizer Configuration covers common parameters (n_iter, random_state, initialize),
warm starting, and performance tips.