Deep Learning Lab
Guide
Module 3 · 4 lessons · ~5.1 hours

Training Dynamics & Optimization

Why does a network learn well, badly, or not at all?

You will learn

  • SGD
  • Momentum
  • Adam & AdamW
  • Learning-rate schedules
  • Overfitting
  • Dropout
  • Weight decay
  • Early stopping
  • Exploding & vanishing gradients

Hands-on: Diagnosing learning curves and fixing deliberately broken experiments.

Lessons

  1. Lesson 3.1: Optimizers and the Learning Rate

    optimizer.step(), opened up. Plain SGD is literally p -= lr * p.grad; momentum adds a velocity that cancels zig-zags; Adam keeps two running averages per weight and normalises every step, which is why its good learning rate (about 1e-3) looks nothing like...

    ~83 min self-study · 9 sections · 26 code cells · 4 labs
    Not started Start
  2. Lesson 3.2: Overfitting, and What to Do About It

    A network that is too big for its data memorises it. You make that happen on purpose (German Credit: 500 training rows, 48,897 parameters, training AUC 1.0 and a validation loss 3.4 times worse than its best), learn why validation loss and AUC tell...

    ~80 min self-study · 10 sections · 21 code cells · 5 labs
    Not started Start
  3. Lesson 3.3: When Gradients Misbehave

    A falling loss does not prove every layer is learning. You turn Module 2's single gradient norm into a per-layer probe and use it to catch five failures: a broken initialisation (all zeros, or far too large), vanishing gradients through a deep sigmoid...

    ~65 min self-study · 8 sections · 13 code cells · 3 labs
    Not started Start
  4. Lesson 3.4: The Diagnosis Clinic

    Lessons 3.1–3.3 gave you three kinds of evidence; this clinic turns them into a procedure: observe, compare with a reference, hypothesise, test, intervene, verify. You learn six curve shapes, a config-driven harness that records losses, metrics, prediction...

    ~80 min self-study · 11 sections · 20 code cells · 2 labs
    Not started Start

Module challenge

Earns the Module 3 badge

Module 3 challenge: why a network learns well, badly, or not at all

8 scenario questions that mix ideas from all 4 lessons. One question at a time, an explanation after each, and your score at the end. Pass mark 75%, so 6 of 8.

not attempted

Best after you have practised all 4 lessons.