
video
3Blue1Brown: But What Is a Neural Network?
Deep learning explained from first principles with stunning visual intuition.
Why it’s worth your time
Grant Sanderson's 2017 video, the first chapter of his deep-learning series, explains what a neural network is "not as a buzzword but as a piece of math." Using a plain network that reads handwritten digits — 784 input neurons for a 28-by-28-pixel image, two hidden layers of 16 and ten outputs — he shows how each neuron takes a weighted sum of the layer before, adds a bias and squashes the result, so that the whole network is just a function with about 13,000 adjustable numbers. Learning, he says, means finding good values for all of them.
It's the clearest first explanation of neural networks there is, with animation that makes the matrix math feel inevitable. Two caveats, both acknowledged in the video: the picture of hidden layers detecting edges and loops is offered as a hope rather than what the trained network does, and the sigmoid function it uses has largely given way to ReLU, as the guest Lisha Li points out at the end. The next chapters cover how the network learns.
Where to start
- But what is a neural network? | Deep learning chapter 1
The video itself.
- Gradient descent, how neural networks learn | Deep Learning Chapter 2
How the network finds its 13,000 numbers.
- Backpropagation, intuitively | Deep Learning Chapter 3
The algorithm that makes learning possible.
- The Coding Train: Neural Networks
Daniel Shiffman building the same thing in code.
About Grant Sanderson
Grant Sanderson studied mathematics at Stanford and started 3Blue1Brown in 2015, writing the Python animation library Manim to make its videos. His series on linear algebra, calculus and neural networks are among the most-watched math explanations online.
Everything by Grant SandersonAbout this channel
My name is Grant Sanderson. Videos here cover a variety of topics in math, or adjacent fields like physics and CS, all with an emphasis on visualizing the core ideas. The goal is to use animation to help elucidate and motivate otherwise tricky topics, and for difficult problems to be made simple with changes in perspective. For more information, other projects, FAQs, and inquiries see the website: https://www.3blue1brown.com


