aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 4. Learning as an Optimization Problem
Lesson 11 of 12 8 min · 135 words

The learning rate

Step size: too small is slow, too large diverges.

The learning rate is the most important hyperparameter of gradient methods. Too small: training is painfully slow and may stall. Too large: steps overshoot the minimum, the loss oscillates or diverges to infinity.

For the simple quadratic , gradient descent converges only if . Steeper problems need smaller steps.

In practice: try values on a log scale (0.1, 0.01, 0.001…), watch the loss curve, and use a schedule — warm up, then decay (step, exponential or cosine). Adaptive optimisers like Adam are less sensitive but still need a sensible (0.001 is a common default).

Formula to remember

Expected risk

Average loss over the true (unknown) data distribution.

Quick check · +5 XP

Minimising J(w) = (w − 3)² from w = 0 with η = 0.1, the first step gives w = …

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