CS229 / STUDY NOTES

Recording and section source map

All 17 available playlist recordings are represented. The upload sequence jumps from lecture 14 to 16, then 18 and 20; recordings 15, 17 and 19 are absent. Several upload titles disagree with the spoken content. The source map preserves original titles alongside transcript-derived chapter titles.

Each timestamp points to the start of a relevant discussion interval, extending to the next chapter anchor or the end of the recording. It is a navigation aid rather than a claim that every sentence in the authored section was spoken there. The machine-readable ledger records the caption segments overlapping each window. Mathematical derivations, original examples, corrections, and research extensions are authored additions.

Lecture 1 — What is being learned?

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 1: Introduction
Video ID: DATnpGoGhM8 · Playlist position: 1 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
05:001. Experience, tasks, and measurable improvement90 segments in discussion interval
09:002. Supervised learning begins with the target221 segments in discussion interval
19:303. Unlabeled data still require a chosen objective195 segments in discussion interval
28:004. Reinforcement learning makes actions part of the data process91 segments in discussion interval
32:005. Research extension: a feedback loop needs a trustworthy signal113 segments in discussion interval

Lecture 2 — Linear regression as prediction, geometry, and computation

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 2: Supervised Learning Setup
Video ID: cmNIMjPYdgM · Playlist position: 2 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
05:541. A prediction problem becomes a mathematical model518 segments in discussion interval
24:002. What squared error asks the model to learn272 segments in discussion interval
33:003. Gradients explain both the update and its stability339 segments in discussion interval
44:004. Stochastic gradients change the cost of an update178 segments in discussion interval
50:005. Batches, budgets, and an executable experiment625 segments in discussion interval
71:006. Normal equations reveal what the observations identify194 segments in discussion interval

Lecture 3 — From noise models to logistic regression and Newton steps

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 3: Weighted Least Squares
Video ID: uJF_gL3jhxI · Playlist position: 3 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
04:001. A regression equation is an assumption about observations562 segments in discussion interval
23:002. Maximum likelihood recovers least squares299 segments in discussion interval
34:003. Binary observations lead to logistic probabilities283 segments in discussion interval
44:004. The gradient is prediction error times features146 segments in discussion interval
49:005. Newton's method uses a local curvature model347 segments in discussion interval

Lecture 4 — Exponential families, generalized linear models, and softmax

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 4: Exponential Family, GLMs Classification
Video ID: 8gVi4Rk21Eg · Playlist position: 4 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
02:301. Normalization organizes an exponential family125 segments in discussion interval
07:002. Familiar distributions reveal the common pattern217 segments in discussion interval
15:003. Derivatives of the log partition produce moments374 segments in discussion interval
28:004. A generalized linear model connects features to a distribution207 segments in discussion interval
36:005. Softmax is a coupled categorical model721 segments in discussion interval
62:006. Label smoothing changes the target distribution348 segments in discussion interval

Lecture 5 — Generative classification, Gaussian geometry, and naive Bayes

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 5: Gaussian Discriminant Analysis
Video ID: zRdE8A4UZes · Playlist position: 5 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
00:001. Learning a joint distribution to answer a conditional question257 segments in discussion interval
09:002. A Gaussian is a geometry, not just a bell curve448 segments in discussion interval
24:003. Fitting Gaussian discriminant analysis595 segments in discussion interval
45:004. Why a Gaussian generative model produces logistic probabilities374 segments in discussion interval
58:005. From generative classification to generative pretraining446 segments in discussion interval
73:006. Naive Bayes trades dependence modeling for statistical economy233 segments in discussion interval

Lecture 6 — Bias, variance, regularization, and model selection

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 6: Dataset Split, ML Advice
Video ID: llnEgyyuYkQ · Playlist position: 6 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
03:001. The learned function is itself random477 segments in discussion interval
20:002. Deriving the bias–variance–noise identity576 segments in discussion interval
42:003. Ridge regression makes the tradeoff visible in each direction410 segments in discussion interval
58:004. Regularization beyond an isotropic coefficient penalty120 segments in discussion interval
62:005. Double descent and benchmark reuse qualify the classical picture245 segments in discussion interval
71:006. Selecting models without spending all the data or compute195 segments in discussion interval

Lecture 7 — Neural networks as compositions of learned representations

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 7: Neural Networks 1 (Architecture)
Video ID: fRM41w9jzQo · Playlist position: 7 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
02:001. Changing the model does not change the learning problem378 segments in discussion interval
21:002. Gradient-based optimization remains the training mechanism314 segments in discussion interval
36:003. A ReLU unit learns a threshold and a slope119 segments in discussion interval
42:004. Dense layers compose features with explicit dimensions435 segments in discussion interval
65:005. Residual connections make the identity map easy to represent147 segments in discussion interval
72:006. Normalization changes which variations a layer can see137 segments in discussion interval
79:007. Convolution is structured parameter sharing34 segments in discussion interval

Lecture 8 — Backpropagation, computational graphs, and higher-order derivatives

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 8: Neural Networks 2 (Backprop)
Video ID: ne2ngVAoMG8 · Playlist position: 8 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
00:001. The computational graph is the object being differentiated238 segments in discussion interval
13:002. Differentiating derivatives gives useful products without a full Hessian92 segments in discussion interval
18:003. The chain rule becomes a local backward contract269 segments in discussion interval
33:004. Affine layers expose both activation and parameter gradients365 segments in discussion interval
56:005. Activation derivatives complete a trainable network111 segments in discussion interval

Lecture 9 — Clustering, Gaussian mixtures, and the geometry of lower bounds

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 9: K-Means and GMM (non-EM)
Video ID: bSmIGBCoffA · Playlist position: 9 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
00:001. A cluster is defined by an objective and a representation211 segments in discussion interval
08:002. Lloyd's algorithm alternates two exact conditional minimizations216 segments in discussion interval
16:003. Initialization changes optimization, not the meaning of the objective373 segments in discussion interval
29:004. A Gaussian mixture specifies a generative story585 segments in discussion interval
50:005. Expectation and maximization alternate inference and estimation263 segments in discussion interval
60:006. Jensen's inequality constructs a lower bound that can touch the likelihood396 segments in discussion interval

Lecture 10 — Expectation–maximization and principal component analysis

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 10: GMM (EM), PCA
Video ID: sUS-eTa0l6s · Playlist position: 10 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
06:001. The ELBO separates model fitting from latent inference190 segments in discussion interval
13:002. EM improves a tight bound, with carefully limited guarantees538 segments in discussion interval
33:003. Gaussian-mixture updates follow from weighted likelihood419 segments in discussion interval
48:004. PCA starts by defining what variation should be preserved234 segments in discussion interval
56:005. Maximum variance and minimum reconstruction error give the same subspace309 segments in discussion interval
68:006. Stable subspaces, probabilistic PCA, and practical limits309 segments in discussion interval

Lecture 11 — Diffusion models: forward noise, reverse dynamics, and a trajectory ELBO

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 11: Diffusion Models
Video ID: dqUMCzWjZSI · Playlist position: 11 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
00:001. A generative model specifies a distribution, not one reconstruction261 segments in discussion interval
14:002. Unrolling the chain gives direct sampling at any noise level279 segments in discussion interval
28:003. The reverse conditional contains uncertainty about the past315 segments in discussion interval
43:004. Reverse-time SDEs explain the role of the score232 segments in discussion interval
55:005. Treating the entire noisy path as latent gives a tractable bound298 segments in discussion interval
74:006. Completing the square produces the reverse training target142 segments in discussion interval

Lecture 12 — Learning to denoise, then learning to adapt

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 12: Representation Learning
Video ID: _kREM2UAiJ8 · Playlist position: 12 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
02:151. Closing the diffusion objective at its endpoints262 segments in discussion interval
19:142. Why predicting noise is a reparameterization136 segments in discussion interval
26:523. One training example and one reverse step175 segments in discussion interval
36:514. A pretrained representation changes the statistical task348 segments in discussion interval
54:495. Fine-tuning changes the representation as well as the head165 segments in discussion interval
62:266. LoRA restricts the update, not the base computation270 segments in discussion interval

Lecture 13 — Contrastive representations, semantic search, and grounded generation

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 13: LLMs, Next-Word Prediction Loss
Video ID: lNTajqxxOn4 · Playlist position: 13 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
00:051. What should an embedding preserve?263 segments in discussion interval
12:252. Positive pairs define invariance; collapse defines the failure297 segments in discussion interval
26:063. A contrastive loss is a classification problem244 segments in discussion interval
39:504. Cross-modal pairs and difficult negatives200 segments in discussion interval
49:255. Search turns geometry into a ranked evidence set73 segments in discussion interval
53:046. Retrieval-augmented generation is an evidence pipeline150 segments in discussion interval

Lecture 14 — Autoregressive language models and the mechanics of attention

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 14: Transformers, In-Context Learning
Video ID: pwQ0l4hFCVI · Playlist position: 14 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
01:481. Tokenization chooses the units of the model196 segments in discussion interval
10:542. The chain rule turns a sequence into conditional decisions287 segments in discussion interval
26:243. Sampling and likelihood use the same probabilities differently246 segments in discussion interval
39:274. Attention makes information flow depend on content393 segments in discussion interval
60:185. A causal mask makes the probability model implementable94 segments in discussion interval
66:136. Multiple heads and residual blocks compose the computation129 segments in discussion interval
73:407. Exact attention can use less memory without fewer pairs82 segments in discussion interval

Lecture 16 — Efficient transformers and the difference between prompting and training

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 16: Basic Concept in RL, Policy Gradient
Video ID: hHC-SF3utxg · Playlist position: 15 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
00:061. Cached keys and values are reusable state142 segments in discussion interval
07:172. Grouped-query attention reduces the number of stored heads341 segments in discussion interval
25:583. A sliding window changes which dependencies are possible128 segments in discussion interval
32:444. Mixture-of-experts separates stored parameters from active computation338 segments in discussion interval
51:245. In-context learning changes the conditional input259 segments in discussion interval
64:186. Instruction tuning changes the parameters and the output objective186 segments in discussion interval

Lecture 18 — Markov decisions, Bellman equations, and policy gradients

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 18: GMM (EM), PCA
Video ID: xveNBYVTrqw · Playlist position: 16 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
07:181. A state must summarize the information needed for the future197 segments in discussion interval
18:122. Rewards define an objective, not merely a training hint273 segments in discussion interval
31:573. A policy induces values for every starting state197 segments in discussion interval
43:164. Bellman equations replace trajectory enumeration with recursion245 segments in discussion interval
55:395. Differentiating an expectation whose distribution changes260 segments in discussion interval
69:196. REINFORCE removes the need to differentiate the environment118 segments in discussion interval

Lecture 20 — Credit assignment, PPO, and reinforcement learning for language models

Original upload title: Stanford CS229 Machine Learning | Spring 2026 | Lecture 20: GMM (EM), PCA
Video ID: J7CossjMvEg · Playlist position: 17 · Track: en · Generated flag: false

RecordingAuthored sectionSource locator
03:471. The past cannot be changed by the current action205 segments in discussion interval
15:572. Baselines are control variates for the gradient226 segments in discussion interval
26:393. Reusing old trajectories requires a distribution correction212 segments in discussion interval
38:474. PPO clips incentives in a direction-dependent way264 segments in discussion interval
51:205. CISPO clips a detached importance weight110 segments in discussion interval
56:256. Language generation supplies a particularly simple environment279 segments in discussion interval
70:477. Group-relative rewards remove a critic but introduce dependencies172 segments in discussion interval

Audit files

Source manifest · Section ledger · Artifact manifest · Package instructions

Raw caption files remain in the original course working folder for audit and are excluded from this portable reading edition. A track marked non-automatic is not a guarantee of error-free notation or transcription.