aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 15. Introductory Neural Networks
Lesson 10 of 14 7 min · 155 words

Gradient-based learning

Putting forward pass, backprop and an optimiser together.

Training a network repeats one loop until the validation loss stops improving:

  • Take a mini-batch of examples.
  • Forward pass: compute predictions and the loss.
  • Backward pass: backpropagate to get gradients of the loss with respect to every parameter.
  • Update: apply an optimiser step, e.g. .
  • Repeat for all batches (one epoch), then evaluate on the validation set.

Optimisers: plain SGD; SGD with momentum (accumulates a velocity to smooth noisy gradients); Adam (per-parameter adaptive step sizes from running averages of gradients and squared gradients — the most common default).

Supporting tricks: random weight initialisation (He for ReLU), input normalisation, learning-rate schedules, dropout (randomly turning off neurons during training), batch normalisation, early stopping and data augmentation.

Formula to remember

Neuron

Weighted sum through an activation φ.

Quick check · +5 XP

A single perceptron cannot learn XOR because XOR is…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser