liveBook · Manning

Bayesian optimization

Bayesian optimization is a sequential method for optimizing an expensive or unknown objective by using a probabilistic model to guide evaluations.

How 5 Manning books explain it

Bayesian Optimization in Action

A Bayesian optimization workflow is an iterative procedure that models an objective, selects candidate points, evaluates them, and updates the observed dataset.

How it is used
Targets expensive black-box objectives by choosing evaluations adaptively under a limited budget.
How deep it goes
Develops the GP–policy loop, acquisition scoring, exploration–exploitation tradeoffs, and Python scaffolding; later extends policies and specialized settings.
Examples
Uses a bounded one-dimensional objective, random and grid-search baselines, hyperparameter tuning, materials discovery, and a restaurant-choice analogy.
What you can do after
Build it from scratch as a GP-and-policy loop and apply it with GPyTorch and BoTorch to bounded black-box searches.

Read how Bayesian Optimization in Action explains Bayesian optimization →

Experimentation for Engineers

Bayesian optimization is a sequential optimization method that uses a probabilistic model and Bayesian updating to choose promising evaluations of an expensive objective.

How it is used
Reduces expensive business-metric measurements by automatically designing and analyzing experiments for system-parameter optimization.
How deep it goes
Explains initialization, surrogate modeling, acquisition optimization, exploration-exploitation balance, iteration, and convergence across seven parameters.
Examples
Uses a noisy JIT compiler simulator, center-point initialization at 0.5, boundary exploration at 0, and iterative CPU-time measurements.
What you can do after
Builds an automated loop that selects costly black-box experiments and stops when the modeled optimum stabilizes.

Read how Experimentation for Engineers explains Bayesian optimization →

Designing Deep Learning Systems: A guide for software engineers

Bayesian optimization is a sequential optimization technique that uses a probabilistic surrogate model to select promising evaluations of an expensive objective.

How it is used
Guides hyperparameter-trial selection as one of three HPO algorithm families.
How deep it goes
Introduces Bayesian optimization at a high level for building or setting up an HPO system, deferring mathematical reasoning.
Examples
Compares Bayesian and random-search data sampling across 10 trials.
What you can do after
Operate/configure it as an HPO algorithm choice under task and infrastructure constraints.

Read how Designing Deep Learning Systems: A guide for software engineers explains Bayesian optimization →

Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI

A Bayesian optimizer is an optimization method that uses outcomes from evaluated configurations to select promising future configurations.

How it is used
Tunes machine-learning hyperparameters when adaptive search can improve performance over a limited number of evaluations.
How deep it goes
Explains surrogate functions, acquisition, exploration, exploitation, and trial workflows without deriving Bayesian mathematics.
Examples
Demonstrates Optuna searches over XGBoost boosters, objectives, tree parameters, learning rates, sampling, and regularization on Tokyo Airbnb data.
What you can do after
Apply it via Optuna to define an objective, run adaptive trials, compare MAE, and inspect optimization history and parameter importance.

Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains Bayesian optimization →

Machine Learning Algorithms in Depth

Bayesian optimization is a sequential optimization technique that uses a probabilistic surrogate model and an acquisition rule to optimize an expensive black-box function.

How it is used
Deploys active learning for hyperparameter optimization when objective evaluations are expensive.
How deep it goes
Explains Gaussian-process posteriors and EI/UCB selection, but does not provide acquisition formulas or derive Gaussian-process inference.
Examples
Uses cross-validated F1 optimization for SVM gamma and random forest estimator-count and depth parameters.
What you can do after
Apply it via bayes_opt with scikit-learn cross-validation to search SVM and random forest hyperparameters.

Read how Machine Learning Algorithms in Depth explains Bayesian optimization →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.