Archive — one question answered
Learning rate: 0.001 or 0.1?
A learning rate that is too large turns loss into NaN — how do you pick η?
Learning rate sets the step size each update. Too small — e.g. for 20 steps — loss might only move from to , training crawls. Too large — with gradients around — one jump sends weights into saturated sigmoid, gradients vanish or loss goes NaN.
On the course spam toy net, often works for one NumPy neuron; is safer before input scaling. Practice: try , , with the same seed, print loss every 5 steps.
| Loss after 20 steps (example) | |
|---|---|
| 0.1 | 0.42 — healthy drop |
| 1.0 | NaN |
There is no magic number for every net; there is a ritual of watching curves. The Deep Learning track shows both extremes before the learning-rate widget compares loss paths. When you move to larger nets later, schedulers and warmup help, but the same question remains: did the first 20 steps improve loss or blow up?