Code Recipes
Bayesian Optimization

Bayesian Optimization (Optuna TPE)

Updated: 05/20/2026botpeoptuna

Description

General-purpose Bayesian optimization using Optuna's default TPESampler.

  • Algorithm: Tree-structured Parzen Estimator.
  • Good for: mixed-type search spaces with continuous, integer, categorical, and binary variables.
  • Dependencies: optuna.

A safe default — try this first when the search space is mixed.

Code

Loading editor…