Skip to main content
Primary: Phase 2Used in Phases 2, 3Interactive TextbookIntermediateFree Learning Material
D2L

Dive into Deep Learning

Free interactive textbook combining mathematical explanations, code, and practical deep-learning concepts.

Authored by Aston Zhang, Zachary C. Lipton, Mu Li, and Alexander J. Smola, Dive into Deep Learning (D2L) is an interactive open-source textbook adopted by hundreds of universities worldwide. Every section pairs mathematical derivations with runnable PyTorch code—bridging linear regression and softmax classification in Phase 2 directly to multilayer perceptrons, initialization, normalization, and modern deep architectures in Phase 3.

Resource Tracking

Course status is tracked independently from roadmap topic checkboxes so you can mark external courses without altering your topic mastery percentage.

Suggested Learning Position

Cross-Phase Interactive Textbook (Phase 2 Module 2.2 & Phase 3 Modules 3.1–3.4)

Language:English
Access & Link Verification

Entire interactive textbook and runnable PyTorch notebooks are 100% free and open-access online.

Status: Verified (2026-11-09)

What You Will Learn from This Resource

  • Implement linear regression, softmax regression, and MLPs from scratch and in PyTorch.
  • Analyze vanishing/exploding gradients, Xavier/He initialization, dropout, and weight decay.
  • Compare SGD, Momentum, RMSProp, and Adam optimization dynamics mathematically and empirically.

Recommended Prerequisites

Review these foundations before starting so you get the most out of this material:

  • Python, NumPy, linear algebra, calculus, and basic probability (Phases 0–1).

Topics & Keywords

D2LInteractive TextbookDeep LearningPyTorchMLPOptimization
Curriculum Integration

How This Resource Fits Into Your AI & LLM Roadmap

Open Interactive Roadmap

Phase-Specific Study Recommendations (2)

Phase 2 · Resource 2.6Advanced Reading

Dive into Deep Learning

In Phase 2: Machine Learning From Scratch

Read Chapters 3 and 4 (Linear Neural Networks for Regression and Classification) to see how classical linear and softmax regression transition into deep learning.

Phase 3 · Resource 3.4Additional Learning

Dive into Deep Learning

In Phase 3: Deep Learning & Neural Networks

Study Chapters 5, 6, and 12 (Multilayer Perceptrons, Forward/Backward Propagation, Numerical Stability/Initialization, and Optimization Algorithms) alongside Phase 3.

Continue Exploring
Browse Full Library
Phases 3, 4, 5Recommended StartVideo Series
Andrej Karpathy
IntermediateFree Learning Material

Neural Networks: Zero to Hero

A code-first introduction to neural networks covering automatic differentiation, backpropagation, language models, and GPT implementations.

Used across:Phase 3 (3.1)Phase 4 (4.3)Phase 5 (5.1)
Andrej KarpathyMicrogradMakemoreBackpropagationAutograd
Your Status:
Phase 3Documentation / Tutorials
PyTorch
IntermediateFree Learning Material

PyTorch Beginner Tutorials

Official 'Learn the Basics' tutorial series covering PyTorch Tensors, Datasets/DataLoaders, `nn.Module`, `torch.autograd`, optimization loops, and model checkpointing.

PyTorchTensorsAutogradnn.ModuleDataLoader
Your Status:
Phases 1, 2Free Textbook
Mathematics for Machine Learning textbook authors
IntermediateFree Learning Material

Mathematics for Machine Learning

Mathematical foundations of machine learning, including linear algebra, vector calculus, probability, and optimization.

Used across:Phase 1 (1.7)
TextbookLinear AlgebraVector CalculusOptimizationProbability
Your Status: