MLA-C02

Introduction to Hyperparameters, Tuning and Model Fit

Fundamental hyperparameters, SageMaker automatic model tuning, overfitting, underfitting and regularisation, and combining models with ensembles.

  • 4 lessons
  • Module quiz

Hyperparameters are settings chosen before training, such as the learning rate or the depth of trees, that control how a model learns. Choosing them well decides whether a model generalises to new data or instead underfits, missing patterns, or overfits, memorising its training data.

SageMaker automatic model tuning searches for good hyperparameter values by running many training jobs, using Bayesian optimisation by default and Hyperband for large searches. Regularisation, early stopping and other techniques control overfitting, and ensembles combine several models to improve accuracy and robustness.

What the exam expects

Questions test recognising overfitting and underfitting from training and validation results, choosing the tuning strategy and scaling type, for example logarithmic scaling for learning rates, and choosing remedies for poor fit.

How this module is organised

Recognizing the Effects of Fundamental Hyperparameters explains the most important hyperparameters. Tuning Hyperparameters with SageMaker Automatic Model Tuning explains automated tuning. Diagnosing Overfitting and Underfitting and Applying Regularization explains how to diagnose and fix poor fit, and Combining Models with Ensembles and Cascades explains ensemble methods.

  1. Recognizing the Effects of Fundamental Hyperparameters Lesson 1
  2. Tuning Hyperparameters with SageMaker Automatic Model Tuning Lesson 2
  3. Diagnosing Overfitting and Underfitting and Applying Regularization Lesson 3
  4. Combining Models with Ensembles and Cascades Lesson 4
  5. Practise and review
  6. Checkpoint Practice activities across the module
  7. Test your knowledge 4 questions