
video
Sentdex: Neural Networks from Scratch
Deep-dive ML tutorials and projects. The 'Neural Networks from Scratch' series is a classic.
Why it’s worth your time
Harrison Kinsley, who runs the Python channel sentdex, began Neural Networks from Scratch in 2020 to teach how neural networks really work by building one with no libraries: first in plain Python, then with NumPy, so that frameworks like PyTorch stop being black boxes. The first part codes a single neuron, inputs times weights plus a bias; later parts build layers, batches, activation functions such as ReLU and softmax, and the cross-entropy loss, and the ninth introduces optimization and derivatives. He asks only that viewers know programming and object-oriented code, and promises to keep the math painfully simple.
It's a patient, hands-on series, ideal for programmers who learn by typing along. The video series stops at part nine, in 2021; backpropagation, optimizers and training are covered in the companion book by Kinsley and Daniel Kukieła, which is sold separately and plugged in the videos. For the same journey through to a working language model, Andrej Karpathy's lectures pick up where it leaves off.
Where to start
- Neural Networks from Scratch - P.1 Intro and Neuron Code
The first part: one neuron in plain Python.
- Neural Networks from Scratch - P.4 Batches, Layers, and Objects
Turning neurons into layers with NumPy.
- Neural Networks from Scratch - P.9 Introducing Optimization and derivatives
The last video in the series.
- Neural Networks from Scratch in Python
The companion book, which finishes the job.
- Andrej Karpathy: Let's Build GPT: From Scratch, in Code, Spelled Out
The next step: a transformer from scratch.
About Harrison Kinsley
Harrison Kinsley makes sentdex, a YouTube channel of Python programming and machine-learning tutorials he started in 2012, and pythonprogramming.net, its text companion. Self-taught as a programmer, he co-wrote a book version of his Neural Networks from Scratch series with Daniel Kukieła (2020).
Everything by Harrison KinsleyAbout this channel
Python Programming tutorials, going further than just the basics. Learn about machine learning, finance, data analysis, robotics, web development, game development and more. I have ~1000 videos, all of which do not fit on the front page. Try searching on the channel page, or via https://pythonprogramming.net. If you cannot find something, just ask! Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6 Paypal donations: HSKinsley@gmail.com


