Learn Optuna
Define-by-run hyperparameter optimization with smart sampling and pruning
Optuna is a Python framework for hyperparameter optimization. You write an objective function that asks a trial for parameter values and returns a score; Optuna's samplers (TPE, CMA-ES, Gaussian processes and more) choose promising values, and pruners stop unpromising trials early. It scales from a notebook to many parallel workers sharing a database, with built-in visualization and multi-objective support.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know