liveBook · Manning

Hyperparameter tuning

As explained in Machine Learning Platform Engineering

Hyperparameter optimization is the process of selecting hyperparameter values by evaluating configurations within a defined search space against an objective such as a loss function.

Hyperparameter tuning selects values from a defined search space by optimizing an objective such as a loss function. Effective searches automate evaluation while keeping the model, configuration, data, and code reproducible. section 2.1.3

A production-oriented tuning workflow:

  • Define the search space and loss function rather than changing values manually. section 2.1.3
  • Represent the trained model as an artifact produced by applying configurations and data to modular code. section 2.1.3
  • Record configurations, results, data versions, checkpoints, and model versions to preserve lineage and traceability. section 2.1.3
Figure 2.5 A view of a retraining pipeline using the modular codebase concept. This approach of keeping the model, code, configuration files, and data as distinct versioned components with lineage links ensures that the process remains flexible, fast, and adaptable while enabling experimentation, debugging, and iterative development.
A screenshot of a computer

AI-generated content may be incorrect.

Use the retraining-pipeline view to connect automated tuning with distinct versioned models, code, configuration files, and data. section 2.1.3

How Machine Learning Platform Engineering covers it

How deep it goes
Defines search spaces, objectives, automation, and modularity but defers specific search algorithms and implementation details.
Examples
Uses a defined search space, a loss function, tracked checkpoints, and a retraining pipeline with versioned components.
What it assumes
Assumes familiarity with model training, data and feature preparation, objectives, metrics, and model artifacts.
What you can do after
Operate automated searches reproducibly by supplying configurations, data, code, a search space, and an objective.
How it connects
Connects hyperparameter optimization with model training pipelines, experiment tracking, model versioning, data versioning, lineage, and reproducibility.

Also explained in

Compare how 18 books explain hyperparameter tuning →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.