Analysis updated 2026-06-24
Run the code examples alongside Michael Nielsen's free book
Study a clean from-scratch neural net training loop
Teach backpropagation using minimal NumPy code
| mnielsen/neural-networks-and-deep-learning | agent0ai/agent-zero | pytorch/vision | |
|---|---|---|---|
| Stars | 17,651 | 17,650 | 17,675 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | hard | moderate |
| Complexity | 2/5 | 4/5 | 4/5 |
| Audience | researcher | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
Code was written for Python 2.6 or 2.7. Use a community Python 3 fork or expect to patch it.
This repository contains the Python code samples that accompany the book "Neural Networks and Deep Learning" by Michael Nielsen. The book is a free online resource that explains how neural networks, the foundational technology behind modern AI, actually work, starting from first principles. The code here is meant to be read alongside the book, giving you runnable examples that demonstrate the concepts explained in the text. The code is written in Python and is primarily intended as a companion to the written material rather than a standalone toolkit. The author has stated he does not intend to add new features or update the code for newer versions of Python, it was written for Python 2.6 or 2.7 and is kept as-is for historical consistency with the book. A community fork with Python 3 compatibility exists separately. You would use this repository if you are working through the "Neural Networks and Deep Learning" book and want to run the code examples yourself, or if you want to study a clear, educational implementation of neural network training written without heavy frameworks. The code is released under the MIT license, which means you are free to use, copy, and modify it for any purpose.
Python code samples from Michael Nielsen's free book Neural Networks and Deep Learning. A from-scratch educational implementation, not a production framework.
Mainly Python. The stack also includes Python, NumPy.
MIT license. Use freely for any purpose including commercial, keep the copyright notice.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.