Neural network training recipe
A cautious staged process for training networks whose failures are silent.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Steps
- Inspect the raw data, its distributions and outliers
- Set up an end-to-end skeleton with dumb baselines and check the initial loss
- Overfit a single batch, then increase capacity until the training set is fit
- Regularize to trade training loss for validation loss
- Tune hyperparameters, then squeeze out final gains such as ensembles and longer training
Covered in
A Recipe for Training Neural Networks
Karpathy teaches a cautious, staged process for training neural networks because their abstractions leak and failures often remain hidden. He recommends understanding the data first, validating a simple end-to-end pipeline, increasing capacity until the model can overfit, regularizing, tuning, and only then applying final performance improvements.
Andrej Karpathy blog
This source is an index of Karpathy's blog posts with short teasers, showing a teaching style built on minimal, from-scratch implementations, human baselines, and hands-on data projects. It points to themes like training GPT in tiny pure Python, practical neural network training advice, and the gap between AI hype and reality.