Aston Zhang, Zachary C. Lipton, Mu Li, Alexander J. Smola

Dive into Deep Learning

An interactive deep learning book with code, math and discussions — from tensors and linear models to transformers, diffusion models and reinforcement learning, with code in PyTorch, TensorFlow, JAX and MXNet.

Current edition of d2l.ai · CC BY-SA 4.0

Contents

Preface

  1. Installation
  2. Notation
  3. Introduction

Basics

  1. Chapter 1Preliminaries
  2. Chapter 2Linear Regression
  3. Chapter 3Linear Classification
  4. Chapter 4Multilayer Perceptrons
  5. Chapter 5Computation
  6. Chapter 6Convolutional Neural Networks
  7. Chapter 7Modern Convolutional Neural Networks
  8. Chapter 8Sequence Models

Advanced

  1. Chapter 9Optimization Algorithms
  2. Chapter 10Attention
  3. Chapter 11Transformers
  4. Chapter 12State Space Models
  5. Chapter 13Computational Performance
  6. Chapter 14Reinforcement Learning
  7. Chapter 15Deep Reinforcement Learning
  8. Chapter 16Generative Adversarial Networks
  9. Chapter 17Diffusion Models

Language Models

  1. Chapter 18Natural Language Processing: Pretraining
  2. Chapter 19Natural Language Processing: Applications

Image Models

  1. Chapter 20Computer Vision

Mathematics for Deep Learning

  1. Chapter 21Linear Algebra
  2. Chapter 22Calculus and Automatic Differentiation
  3. Chapter 23Optimization
  4. Chapter 24Probability and Statistical Learning
  5. Chapter 25Information Theory and Divergences
  6. Chapter 26Dynamics: Differential Equations and Generative Flows

Tools for Deep Learning

  1. Chapter 27Tools for Deep Learning

Attic

  1. Chapter 28Gaussian Processes
  2. Chapter 29Hyperparameter Optimization
  3. Chapter 30Recommender Systems
  1. References