Wired to Learn
Code & setup
Every listing in the book is in the companion repository, with the expected output of every longer program.
launchsequencebooks/wired-to-learn
Open on GitHub
Download
Clone the repository:
git clone https://github.com/launchsequencebooks/wired-to-learn.git
Set up in a few minutes
1. Install Python 3.12
From python.org or your system's package manager. Appendix B of the book covers setup in detail, including GPUs.
-
2. Get the code and create a virtual environment
bash git clone https://github.com/launchsequencebooks/wired-to-learn.git cd wired-to-learn python -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate -
3. Install the packages
Follow the README in the repository; it lists the exact packages and versions used in the book.
4. Run any listing
Each chapter has its own folder. Compare your output with the expected output in the repository.
Code by chapter
| Chapter | Listings | Folder |
|---|---|---|
| 1. Meet the Neural Network | 0 | code/ch01 |
| 2. The Math Toolkit, Made Visual | 0 | code/ch02 |
| 3. The Artificial Neuron and the Perceptron | 0 | code/ch03 |
| 4. Activation Functions: Giving Networks Their Bend | 0 | code/ch04 |
| 5. Learning from Mistakes: Loss Functions and Gradient Descent | 0 | code/ch05 |
| 6. Multilayer Networks: The Forward Pass | 0 | code/ch06 |
| 7. Backpropagation, Step by Step | 0 | code/ch07 |
| 8. TinyNet: Your Own Deep-Learning Library | 0 | code/ch08 |
| 9. Project: Reading Handwritten Digits | 0 | code/ch09 |
| 10. From TinyNet to PyTorch | 0 | code/ch10 |
| 11. Optimizers: From Momentum to Adam | 0 | code/ch11 |
| 12. Initialization and Normalization | 0 | code/ch12 |
| 13. Fighting Overfitting | 0 | code/ch13 |
| 14. The Training Playbook | 0 | code/ch14 |
| 15. Convolutional Neural Networks | 0 | code/ch15 |
| 16. Modern CNNs and Transfer Learning | 0 | code/ch16 |
| 17. Recurrent Networks: RNN, LSTM and GRU | 0 | code/ch17 |
| 18. Attention, Transformers and a Mini-GPT | 0 | code/ch18 |
| 19. Autoencoders and Variational Autoencoders | 0 | code/ch19 |
| 20. Generative Models: GANs and Diffusion | 0 | code/ch20 |
| 21. Graph Neural Networks | 0 | code/ch21 |
| 22. Choosing the Right Network | 0 | code/ch22 |
| 23. Self-Supervised and Contrastive Learning | 0 | code/ch23 |
| 24. Reinforcement Learning with Neural Networks | 0 | code/ch24 |
| 25. Fine-Tuning, Full and Parameter-Efficient | 0 | code/ch25 |
| 26. Profiling and Faster Training | 0 | code/ch26 |
| 27. Quantization, Pruning and Distillation | 0 | code/ch27 |
| 28. ONNX, Inference Engines and Serving | 0 | code/ch28 |
| 29. Neural Networks as Application Components | 0 | code/ch29 |
| 30. Project: A Smart Photo Organizer | 0 | code/ch30 |
| 31. Project: A Ticket Triage Assistant | 0 | code/ch31 |
| 32. Project: A Log Anomaly Detector | 0 | code/ch32 |
| 33. Project: A Demand-Forecasting Dashboard | 0 | code/ch33 |
| 34. Project: A Recommender System | 0 | code/ch34 |
| 35. Project: Question Answering over Documents | 0 | code/ch35 |
| 36. Testing, Monitoring and MLOps | 0 | code/ch36 |
Found something wrong? Check the errata or report a problem.