Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Intro to Neural Networks and Backpropagation - Building Micrograd

Andrej Karpathy via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a comprehensive 2.5-hour video tutorial on neural networks and backpropagation, focusing on building micrograd from scratch. Learn step-by-step explanations of key concepts, starting with basic derivatives and progressing to implementing a full neural network library. Follow along as the instructor demonstrates manual backpropagation, builds core components, and compares implementations with PyTorch. Gain practical experience by creating datasets, writing loss functions, and performing gradient descent optimization. Conclude with a summary of modern neural network concepts and a walkthrough of the complete micrograd codebase on GitHub. Suitable for those with basic Python knowledge and a general understanding of calculus.

Syllabus

intro
micrograd overview
derivative of a simple function with one input
derivative of a function with multiple inputs
starting the core Value object of micrograd and its visualization
manual backpropagation example #1: simple expression
preview of a single optimization step
manual backpropagation example #2: a neuron
implementing the backward function for each operation
implementing the backward function for a whole expression graph
fixing a backprop bug when one node is used multiple times
breaking up a tanh, exercising with more operations
doing the same thing but in PyTorch: comparison
building out a neural net library multi-layer perceptron in micrograd
creating a tiny dataset, writing the loss function
collecting all of the parameters of the neural net
doing gradient descent optimization manually, training the network
summary of what we learned, how to go towards modern neural nets
walkthrough of the full code of micrograd on github
real stuff: diving into PyTorch, finding their backward pass for tanh
conclusion
outtakes :

Taught by

Andrej Karpathy

Reviews

Start your review of Intro to Neural Networks and Backpropagation - Building Micrograd

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.