course bible

Seven Phases of Machine Learning

A first-year student should stay oriented; a graduate student should see the real machinery and the places where the field is still unsettled.

The course is designed as an interactive book: intuition first, then the mathematical object, then a lab or demo, then the failure mode. A reader should be able to move from first principles to modern AI systems without losing the thread.

Chapter Rubric

  1. A cold-open hook that makes the problem feel necessary.
  2. A first-year explanation before notation.
  3. A formal model: objective, assumptions, and failure mode.
  4. A demo or lab that changes the reader's belief through interaction.
  5. A graduate lens that names what experts worry about.
  6. A problem set or experiment prompt that forces transfer.
  7. A coda that connects the chapter to the next idea.

Historical Spine

The course treats history as a debugging aid. Each breakthrough changed what researchers could optimize, measure, or scale.

1950

Alan Turing frames machine intelligence as a behavioral question: can a machine carry on an imitation game well enough to make the boundary hard to police?

1958

Frank Rosenblatt demonstrates the Mark I Perceptron, turning weighted votes from examples into a public symbol of learning machines.

1959

Arthur Samuel uses the phrase machine learning while building a checkers program that improves from play.

1986

Rumelhart, Hinton, and Williams make backpropagation central to neural-network training, showing how one loss can teach hidden layers.

1998

LeNet shows convolutional networks working at production scale for handwritten digit recognition.

2012

AlexNet wins ImageNet by a large margin and makes GPU-trained deep learning impossible to ignore.

2017

Attention Is All You Need introduces the transformer architecture that later becomes the workhorse for language, code, vision, and multimodal systems.

2020

Scaling-law work turns model size, data size, and compute into an empirical design surface rather than guesswork.

2022

Diffusion image models and conversational language models make generative AI visible to the public, raising the stakes for evaluation and alignment.

Capstone Spine

  1. Prediction Autopsy: Choose a real ML feature and reverse-engineer the learning loop behind it.
  2. Honest Evaluation Report: Take one dataset and show how the result changes under bad and good evaluation practice.
  3. Classifier From Scratch: Implement logistic regression with gradient descent and explain every term.
  4. Tiny Autodiff Engine: Build a small scalar autodiff system and train a two-layer network.
  5. Inductive Bias Lab: Compare a dense model, a convolutional model, and a sequence model on tasks they are biased to solve.
  6. Retrieval-Augmented Tutor: Build a small system that retrieves notes, answers questions, and cites the retrieved evidence.
  7. Agent Reliability Trial: Create a small agent task and evaluate it before and after a reward or instruction change.
Phase 2

Generalization and Measurement

How to know whether a model learned a pattern, memorized a sample, leaked data, or merely optimized the wrong score.

reader promise

You can design train/validation/test splits, choose metrics, and explain why held-out performance matters.

graduate lens

The phase introduces distribution shift, bias-variance, calibration, and metric design as scientific controls.

  1. 3 🧪 The Generalization Gap Why Training Accuracy Is Not the Prize
  2. 4 📏 Measuring Models Accuracy Is Only One Lens
Phase 3

Linear Models and Optimization

Boundaries, weighted votes, gradients, and the first models simple enough to understand completely.

reader promise

You can derive how a line becomes a classifier and how a local update changes the decision boundary.

graduate lens

The phase ties geometry to convex objectives, stochastic gradients, and parameter identifiability.

  1. 5 ✂️ Drawing Boundaries When Lines Become Decisions
  2. 6 ⛰️ The Gradient Descent Lab Optimization as Controlled Motion
  3. 7 The Artificial Neuron Biology Inspires Math
Phase 4

Deep Networks

Layers, nonlinear representations, backpropagation, initialization, optimizers, and regularization.

reader promise

You can explain how a scalar loss teaches many layers and why training stability is an engineering problem.

graduate lens

The phase treats autodiff, residual pathways, normalization, and implicit regularization as core machinery.

  1. 8 🏗️ Layers of Abstraction From Pixels to Concepts
  2. 9 🔄 The Credit Assignment Problem How Networks Learn From Mistakes
  3. 10 🛠️ Optimization in Practice Regularization, Stability, and the Training Recipe
Phase 5

Representations Across Space and Time

Architectures that exploit structure: images have locality, sequences have order, and attention creates content-addressed retrieval.

reader promise

You can recognize the inductive bias behind CNNs, RNNs, and attention instead of memorizing architectures.

graduate lens

The phase connects weight sharing, receptive fields, hidden state, and quadratic attention cost.

  1. 11 🔍 The Pattern Scanner Spatial Structure in Data
  2. 12 🔁 Memory in Networks Learning from Sequences
  3. 13 🎯 Focus, Not Memory The Revolution That Changed AI
Phase 6

Foundation Models

Transformers, scaling laws, generation, multimodal embeddings, retrieval, and tool-using systems.

reader promise

You can trace how next-token training becomes a general interface for language, images, retrieval, and tools.

graduate lens

The phase separates pretraining, post-training, retrieval augmentation, and system evaluation.

  1. 14 🏛️ The Architecture of Intelligence How GPT and Friends Actually Work
  2. 15 📊 The Scaling Hypothesis Why Bigger Models Keep Getting Better
  3. 16 Creating, Not Classifying From Prediction to Generation
  4. 17 🔗 Connecting Senses When AI Sees, Hears, and Speaks
  5. 18 🧭 Retrieval, Tools, and Agents When a Model Is Part of a System
Phase 7

Agents, Alignment, and Evaluation

Learning from reward, aligning behavior with human intent, evaluating deployed systems, and thinking about frontier risk.

reader promise

You can reason about policies, preference models, eval suites, reward hacking, and agent reliability.

graduate lens

The phase treats evaluation, oversight, interpretability, and governance as technical design constraints.

  1. 19 🎯 Learning from Experience Trial, Error, and Reward
  2. 20 🤝 Aligning AI with Humans Teaching Preferences, Not Just Tasks
  3. 21 🧾 Evaluating AI Systems From Benchmarks to Behavioral Evidence
  4. 22 🛡️ The Road Ahead Challenges, Risks, and Possibilities