Debugging training
Step 13 of 14 in Deep Learning · Build · Medium
Overfit one batch first, check the initial loss value, visualize inputs and predictions, change one thing at a time.
Build it
Break and fix
Overfit one batch to ~0 loss, then introduce 3 classic bugs (no zero_grad, wrong label shape, un-normalized inputs) and record the symptoms.
Done when: A table: bug → symptom → how you'd spot it.
Resources
- Wikipedia: Overfitting Article
- PyTorch tutorials Article
- Karpathy: A Recipe for Training NNs Article
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map