Course · AI
Deep learning, built to understand.
Practical tutorials covering how deep learning actually works, with no hand-waving and no black boxes. From autograd to transformers, with real code in PyTorch.
01 / Getting Started
02 / Math Foundations
- Vectors & Dot ProductThe geometry of deep learning — what vectors are, how to operate on them, and why the dot product is everywhere.
- MatricesFrom vectors to matrices, organized collections of vectors that unlock linear layers, batch computation, and the backbone of every deep learning model.
- DerivativesHow a function's output responds to a change in its input: instantaneous rate of change, differentiation rules, and partial derivatives.
- GradientsThe gradient: collecting all partial derivatives into one vector that points in the direction of steepest increase.
03 / Autograd
- The Chain RuleHow to differentiate composed functions: the formula that connects every layer of a deep network.
- The Computation GraphHow deep learning frameworks track every operation to enable automatic differentiation.
- BackpropagationThe algorithm that traverses the computation graph in reverse to compute every gradient in one pass.
04 / Training
- Loss FunctionsMeasuring how wrong a model is: MSE for regression and cross-entropy for classification.
- Gradient DescentUsing the gradient to iteratively move weights in the direction that reduces the loss.
- OptimizersMomentum, Adam, and AdamW: practical modifications that make gradient descent faster and more reliable.
- The Training LoopIterating over batches, running epochs, and measuring generalization through validation.
05 / Building Blocks
- Activation FunctionsFrom sigmoid to ReLU: the non-linear operations that make depth meaningful, and why each replaced what came before.
- Linear LayersWhat a neuron computes, how neurons combine into layers, and how layers stack into a network.
- RegularizationWeight decay, dropout, and batch normalization: preventing overfitting and stabilizing deep networks.
06 / Convolutional Networks
- Kernels & FiltersHow convolutional filters detect local features by sliding a small weight matrix across the input.
- DownsamplingPooling and strided convolutions: reducing spatial dimensions to grow the receptive field efficiently.
- Convolution OptimizationThree levels of convolution: the naive nested loops, im2col mapped to GEMM, and Winograd for arithmetic-optimal 3×3 kernels.
- Digit ClassifierAssembling every convolutional building block into a complete network that recognizes handwritten digits.
07 / Recurrent Networks
- Sequences & MemoryWhy order and context matter in sequences, and what a model needs to process them.
- Vanilla RNNsThe concrete equations behind the recurrent cell: weight matrices, tanh, and backpropagation through time.
- LSTMs & GRUsGated cells that selectively retain, update, and expose information across long sequences.
- The Limits of RNNsWhy sequential computation, fixed-size bottlenecks, and recency bias prevent RNNs from scaling further.
08 / Transformers
- Tokenization & EmbeddingsConverting raw text into the numerical vectors that every sequence model requires.
- Positional EncodingInjecting order into an architecture that is otherwise blind to the position of each token.
- Attention MechanismHow scaled dot-product attention lets every position directly query every other position.
- Multi-Head AttentionRunning H independent attention heads in parallel so each can specialise in a different type of dependency.
- The Transformer BlockResidual connections, layer normalization, and the feed-forward network that complete each transformer layer.
- GPT-2 from ScratchAssembling every piece into a working language model.