Complete PyTorch projects¶
These projects connect an important PyTorch idea to a program you can run. Start with the question you need to clarify; each project points back to the guide sections that explain its parts.
How every project page works¶
- The question identifies the transferable idea.
- What to remember explains the mental model.
- Key code annotates the important implementation decisions.
- Evidence and visual separates reproduced output from illustrative diagrams.
- Interactive check lets you change one relevant input.
- Run it yourself gives a small CPU command and an optional longer GPU mode.
- Complete source includes the maintained script directly from
examples/.
Choose a project¶
| Project | Question it answers | Guide connection | Output |
|---|---|---|---|
| Nonlinear regression | Why can a nonlinear network fit a curve that a linear model misses? | Models and activations | reproduced prediction chart and validation MSE |
| EMNIST letters | Why should an image classifier preserve spatial structure? | CNN architecture and shapes | predictions, curves, confusion matrix, metrics, checkpoint |
| Robust image pipeline | How should bad files be handled before training? | Reliable image data | manifest, validation report, predictions, metrics, checkpoint |
| Nature CNN | How do architecture and regularization affect generalization? | Generalization and regularization | predictions, curves, confusion matrix, metrics, checkpoint |
Small by default, longer when requested¶
The default commands use fixed seeds and intentionally limited data or epochs so the projects can run on an ordinary CPU computer. They still download real public datasets, create models, train, evaluate, and save artifacts. The optional --full --device cuda mode increases the run budget without changing the conceptual workflow.
Results policy
Only output produced by retained, reproducible runs is reported as measurement. Conceptual diagrams and adjustable curves are clearly labelled illustrative. Smoke tests verify code paths; they are not model-quality benchmarks.