The spelled-out intro to neural networks and backpropagation: building micrograd
This is the most step-by-step spelled-out explanation of backpropagation and training of neural networks. It only assumes basic knowledge of Python and a vague recollection of calculus from high school.
Links:
- micrograd on github:
- jupyter notebooks I built in this video:
- my website:
- my twitter:
- “discussion forum“: nvm, use youtube comments below for now :)
- (new) Neural Networks: Zero to Hero series Discord channel: , for people who’d like to chat more and go beyond youtube comments
Exercises:
you should now be able to complete the following google collab, good luck!:
Chapters:
00:00:00 intro
00:00:25 micrograd overview
00:08:08 derivative of a simple function with one input
00:14:12 derivative of a function with multiple inputs
00:19:09 starting the core Value object of micrograd and its visualization
00:32:10 manual backpropagation example #1: simple expression
00:51:10 preview of a single optimization step
00:52:52 manual backpropagation example #2: a neuron
01:09:02 implementing the backward function for each operation
01:17:32 implementing the backward function for a whole expression graph
01:22:28 fixing a backprop bug when one node is used multiple times
01:27:05 breaking up a tanh, exercising with more operations
01:39:31 doing the same thing but in PyTorch: comparison
01:43:55 building out a neural net library (multi-layer perceptron) in micrograd
01:51:04 creating a tiny dataset, writing the loss function
01:57:56 collecting all of the parameters of the neural net
02:01:12 doing gradient descent optimization manually, training the network
02:14:03 summary of what we learned, how to go towards modern neural nets
02:16:46 walkthrough of the full code of micrograd on github
02:21:10 real stuff: diving into PyTorch, finding their backward pass for tanh
02:24:39 conclusion
02:25:20 outtakes :)
1 view
89
15
7 months ago 00:02:41 1
☻ᏚᎢᎯᏞᏦᏐNᏩ ᎷᎬ☻
7 months ago 00:03:48 1
Jinx // Arcane「AMV」Calm Down
7 months ago 00:04:36 1
The Spelling Song | Learn to Spell 3 Letter Words | Kindergarten, Preschool & ESL | Fun Kids English
7 months ago 00:04:12 1
Madonna - The Power Of Good-Bye (Official Video)
7 months ago 00:04:51 1
Lucifer’s Hammer - Medusa Spell (Be and Exist 2024)
7 months ago 00:20:36 1
“You Can’t Spell Satan Without NASA!“
7 months ago 00:02:12 1
Witchfire - Official Ghost Galleon Update Gameplay Trailer
7 months ago 00:02:39 1
Sub Urban - UH OH! (feat. BENEE) [Official Music Video]
7 months ago 00:03:21 1
Short Vowel - e | Phonics Rhyming Words - ed et eg en | 2 Phonics Readers |Go Phonics 1C U27
7 months ago 00:04:48 1
Harry Potter but in Mexico
7 months ago 00:51:26 1
PROMETHEUS MIX Best Deep House Vocal & Nu Disco 2024
7 months ago 00:03:15 1
Wish’s Original Movie Scene: Evil Magnifico and Amaya (Read Description)
7 months ago 00:16:15 1
Noita: All New Beta Branch Music! It Slaps (The New New Stuff... Not The Old New Stuff)
7 months ago 03:34:09 15
Warhammer The Old World Battle Report | Empire vs Vampire Counts
7 months ago 00:19:36 1
Can You Beat Skyrim With Only A Torch?
7 months ago 00:20:06 1
Can You Beat Skyrim With Only A Fork?
7 months ago 00:21:46 1
The Best Looking Pixel Art Indie Games of the Year - 2023
7 months ago 00:40:32 1
Ravager - Eradicate... Annihilate... Exterminate... (Full Album, 2017)
7 months ago 01:07:27 1
RETRO MIX Best Deep House Vocal & Nu Disco MY FAVOURITES
7 months ago 00:02:58 1
GAYLE - abcdefu (Official Music Video)
7 months ago 00:22:39 1
Real Cursed Paintings With Haunted Backstories
7 months ago 00:46:34 1
🚨 Silver’s $30 Eclipse This Week ++ NEW Gold Standard
7 months ago 00:12:31 1
Schizophrenic Wands | Noita
7 months ago 00:10:23 1
10 MIN Full Body Workout (Dumbbells Only) For Beginners At Home