Repository navigation
Implementation and Research Standards
A substantial concept should include:
- Learning objectives and prerequisites.
- Motivation and intuition.
- Mathematical definitions, assumptions and derivations.
- A hand-worked numerical example.
- Architecture/data-flow diagram and tensor shapes.
- NumPy implementation where pedagogically meaningful.
- Unit tests, assertions and numerical checks.
- PyTorch implementation and training loop.
- Experiments, plots and evaluation.
- Failure modes, limitations, exercises and references.
Expose intermediate values, document shapes, implement gradients when central to the concept, and prioritize clarity over premature optimization.
Use PyTorch modules appropriately, explain autograd, show the training loop and compare selected outputs/gradients with the NumPy version. Do not hide the central mechanism behind a high-level call in the first demonstration.
Use hand calculations, finite-difference gradient checks, toy datasets, shape/invariant tests, tiny-batch overfitting sanity checks and meaningful baselines.
Record Python/package versions, OS, hardware, seeds, dataset source/license, preprocessing, split method, model configuration, parameter count, optimizer, learning rate, batch size, epochs, checkpoint rule, metrics, runtime, memory and deviations. A fixed seed does not guarantee bitwise-identical results across devices.
State a research question and hypothesis; change factors systematically; keep splits and protocols consistent; include baselines; repeat seeds when feasible; report variability; explain negative results; never alter results to fit expectations.
Respect dataset licenses. Do not commit credentials, private data or sensitive information. Document leakage safeguards and preprocessing. Separate training, validation and test data.
Use Planned, In Progress, Implemented or Validated. A notebook that runs once is not automatically validated.
Optimization, learning and regularization topics are covered in their module chapters: Module 06 (losses, ERM, gradient descent), Module 07 (forward/backpropagation), Module 08 (optimizers), Module 09 (initialization and normalization) and Module 10 (regularization and generalization). See the Curriculum map for every topic.
🏠 Home · 🗺️ Curriculum · 🧭 Learning paths · ❓ Question bank · 📖 Glossary · 📚 References · ✏️ Contributing
🏠 Home · 🗺️ Curriculum · 🧭 Learning paths
❓ Question bank · 📖 Glossary · 📚 References
Jump to module:
01 02 03 04 05 06 07 08 09 10 11 12
13 14 15 16 17 18 19 20 21 22 23 24