Skip to content

Deep Learning Foundations

AI/ML Engineering Track | Phase 10 · 27 modules · ~70–110 hours

This section teaches deep learning the way it actually clicks: from scratch first, framework second. You build a working multi-layer perceptron — forward pass, loss, backprop, and a scalar autograd engine — in plain NumPy before you are allowed to import torch. Once the mechanics are no longer magic, you cross the bridge to PyTorch and learn to run reproducible training loops, diagnose why a network won’t converge, and reason about numerical stability.

From there the section climbs the modern architecture stack one idea at a time — embeddings, residual connections, attention, and a transformer block you assemble by hand — then applies it across vision (CNNs), sequences (RNNs), and a capstone where you train a real network end-to-end. The final modules reach into self-supervised learning, graph neural networks, and the attention variants (RoPE, ALiBi) that power current frontier models.

Every module is taught at Bloom Level 3+ — derive it, implement it, debug it — not “remember the API.” If the math feels intimidating, start with the warm-up (1.1.1); it assumes nothing beyond high-school calculus and rebuilds the rest.

The 27 modules form one spine with five sub-chains. Work them roughly in order — each chain assumes the previous one.

Build the whole stack by hand — neuron, MLP, activations, losses, backprop, and a scalar autograd engine — so nothing in PyTorch is ever a black box.

#Module
1.1NumPy, Pandas & Data Tooling for ML
1.1.1Neural Network Math Warm-Up
1.1.2The Neuron & Perceptron from Scratch
1.1.3Forward Propagation in Multi-Layer Perceptrons
1.1.4Activation Functions in Depth
1.1.5Loss Functions & Output Heads
1.1.6Backprop by Hand for Dense Nets
1.1.7Tiny NumPy NN Lab: XOR to Fashion-MNIST
1.1.8Computational Graphs & Scalar Autograd

Port your NumPy engine to torch, then turn one gradient step into a reproducible run: initialization, optimizers, regularization, normalization, a diagnostics playbook, and numerical-stability discipline.

#Module
1.2The PyTorch Bridge: From Your NumPy Engine to torch
1.3The Training Loop: From One Step to a Reproducible Run
1.3.1Initialization & Signal Propagation
1.3.2Optimizers & Learning-Rate Dynamics
1.3.3Regularization & Generalization
1.3.4Normalization Layers
1.3.5Training-Diagnostics Playbook
1.3.6Numerical Stability & Precision

The conceptual core of modern deep learning: embeddings, residual depth, attention from first principles, and the transformer block assembled from those parts.

#Module
1.4.1Embeddings & Representation Learning
1.4.2Residual Connections & Deep-Architecture Patterns
1.4.3Attention from Scratch
1.4.4The Transformer Block from Scratch

Apply the stack to real data — convolutional networks for vision, recurrent networks for sequences — then train a complete network end-to-end.

#Module
1.5Convolutional Neural Networks & Computer Vision
1.6Recurrent Networks & Sequence Models
1.7Capstone: Train a Real Net End-to-End

Where the field is heading: learning without labels, learning on graphs, and the attention variants behind current frontier models.

#Module
1.8Self-Supervised Learning
1.9Graph Neural Networks
1.10Modern Transformers: RoPE, ALiBi, and Attention Variants
  1. If the math feels shaky, do 1.1.1 first — everything else builds on it.
  2. Walk 1.1 → 1.1.8 in order. The from-scratch chain is cumulative; skipping a step breaks the next module’s assumptions.
  3. Only then cross to PyTorch (1.2) and the training loop (1.3 plus 1.3.1–1.3.6). Resist jumping here first — the framework hides exactly the mechanics you just built by hand.
  4. Climb the representation chain 1.4.1 → 1.4.4 before any specific architecture; attention and residual connections reappear everywhere downstream.
  5. Choose by interest across 1.5 (vision) and 1.6 (sequences), then lock it all in with the 1.7 capstone.
  6. Treat 1.8–1.10 as advanced electives once the spine is solid.