(Backpropagation in NumPy)
Build and train a neural network with nothing but NumPy — and finally see what PyTorch's autograd hides.
A free, hands-on tutorial: build a neural network from scratch in pure NumPy — no framework, no autograd. Implement the forward pass, the loss and backpropagation by hand, then train it to solve a problem a single layer can't. The under-the-hood companion to the PyTorch course. Runs entirely on your laptop.
Writing backprop once, by hand, is the fastest way to truly understand how every neural network learns — and to stop treating PyTorch and TensorFlow as magic.
Binary cross-entropy: one number that says how far the network's probabilities are from the truth.
The chain rule, in code: compute the gradient of the loss for every weight, layer by layer, backwards.
Forward, loss, backward, nudge the weights — repeat. Watch the loss fall and accuracy climb to ~100%.