Deep Learning
Understand neural networks from the inside out — activations, forward passes, softmax, backpropagation — then build and train them in PyTorch.
Deep learning frameworks make it easy to stack layers without understanding them. This course goes
the other way: you first implement the core mechanics of a neural network yourself in NumPy —
activations, a forward pass, softmax and cross-entropy, gradients of a neuron, a full training loop —
and then see exactly how PyTorch's tensors, autograd, nn.Module and optimisers express the same
ideas.
The exercises run in your browser, where PyTorch is not available, so they use plain Python and NumPy. Every lesson shows the equivalent real PyTorch code so you can run it locally or in a notebook.
Neurons, activation functions and the forward pass of a multi-layer network.
Softmax and cross-entropy loss, and backpropagation as the chain rule on a computation graph.
Tensors, autograd and the canonical training loop.
Implement a 2-layer neural network for MNIST from scratch in NumPy (forward pass, softmax cross-entropy, manual backprop, mini-batch SGD), then rebuild it in PyTorch and compare accuracy, speed and code size.
Diagnose and prevent overfitting, then reuse pretrained networks instead of training from scratch: the foundation for fine-tuning LLMs.
Practise tensor creation, tensor operations and the structure of a simple neural network (NumPy in the browser, with PyTorch equivalents).