SMAC3 helps find strong hyperparameter settings for machine learning algorithms using Bayesian optimization and configuration racing. It is a Python package with optional cluster parallelization.
Overview
SMAC3 is a tool for algorithm configuration and hyperparameter optimization of machine learning models. Its core pairs Bayesian optimization with an aggressive racing mechanism to compare candidate configurations efficiently.
The package supports rich search spaces with floats, ordinals, categoricals, and conditional parameters. It offers multi-objective, multi-fidelity, and multi-threaded optimization, along with ask-and-tell interfaces and the ability to resume runs. User priors, callbacks, and optimization across many related tasks are supported.
Targets can be defined as Python callables or invoked via external scripts. Parallel evaluation is available locally and on clusters through Dask. SMAC3 integrates with the AutoML ecosystem, including visualization through DeepCAVE, benchmarking via CARPS, distributed evaluation with HyperSweeper, and use as a sampler within Optuna.
The project is developed by AutoML groups and maintains active development. Random forest surrogate components use sklearn by default, with optional legacy random forest backends available for specialized setups.
Key features
- Bayesian optimization with intensification racing
- Multi-objective and multi-fidelity search
- Ask-and-tell and warm-start support
- Rich hyperparameter search spaces
- Cluster parallelization via Dask
- Algorithm configuration across tasks
- Pythonic or script-invoked objectives
- Optuna sampler integration
Use cases
- Tuning ML model hyperparameters
- AutoML pipeline configuration
- Multi-fidelity expensive evaluations
- Multi-objective model selection
- Cross-dataset algorithm configuration