internalsGet Pro

Module 09 · Lesson 7 of 11Pro

Dropout and other ways to regularize networks

Level
Intermediate
Topic
Neural networks
Reading time
17 min

When you finish this page you can

  1. Explain what dropout does to a hidden layer during training, and why PyTorch scales the surviving values by 1 ÷ (1 − p).
  2. Predict how a network with dropout behaves in training and evaluation mode, and catch the bugs each mode causes.
  3. Set AdamW’s weight decay knowing that its effect grows with the learning rate and the number of steps.
  4. Choose between dropout, weight decay, early stopping and more data for an overfitting network, and say what would change the choice.
  1. Regularization: L1, L2 and early stopping17 min
  2. Momentum, Adam and modern optimizers17 min
  3. Building a neural network in PyTorch14 min
  4. Batch and layer normalization16 min

A wider network that memorises its photos

is our example online store. Sellers pick a category for every product they list, and they often pick the wrong one. In Building a neural network in PyTorch, Farah, an ML engineer, built FashionNet to suggest the category from the photo. It reached 0.862 test accuracy on Fashion-MNIST, a public set of small clothing photos.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan