Skip to Content
03 MathsCs229 Course

Stanford CS229 Machine Learning

Notebooks covering the Stanford CS229 ML theory and algorithms course.

Source PDF: cs229.pdf

This folder is the bridge from math foundations to core ML algorithms. Use it when you want to understand how the math turns into modeling choices, error analysis, and learning behavior.

Notebooks

#NotebookTopics
01Linear RegressionNormal equations, least squares, feature scaling
02Gradient DescentBatch, stochastic, mini-batch GD, convergence
03Locally Weighted RegressionNon-parametric regression, bandwidth selection
04Logistic RegressionBinary classification, sigmoid, cross-entropy
05Generative ModelsGaussian discriminant analysis, Naive Bayes
06Support Vector MachinesMargin maximization, kernel trick, SMO
07RegularizationL1/L2 penalties, bias-variance tradeoff
08Learning TheoryPAC learning, VC dimension, generalization bounds
09Decision TreesCART, pruning, information gain, Gini impurity
10Neural Networks BasicsPerceptron, feedforward nets, activation functions
11Neural Networks AdvancedBackprop, dropout, batch norm, architectures
12ML StrategyError analysis, dataset splits, debugging ML
13ClusteringK-Means, hierarchical, DBSCAN, evaluation
14Dimensionality ReductionPCA, t-SNE, autoencoders
15Reinforcement LearningMDPs, Q-learning, policy gradient
X01Anomaly DetectionGaussian-based, isolation forest
X02Recommender SystemsCollaborative filtering, matrix factorization
-Practice ProblemsReview exercises across all topics

Prerequisites

  • foundational/ notebooks 01-04 (linear algebra, calculus, probability, gradient descent)
  • Python 3.8+, NumPy, Matplotlib, scikit-learn

Suggested Order

Follow the numbered sequence (01-15). X01-X02 are supplementary.

How To Use This Folder Well

  • Work through the numbered sequence instead of skipping directly to fashionable topics.
  • Pay special attention to optimization, regularization, learning theory, and ML strategy because those ideas transfer across the entire repo.
  • Use this folder to connect equations to algorithm behavior, not just to memorize model names.
  • mml-book/ - deeper math foundations
  • islp-book/ - statistical learning perspective on similar topics

What Comes Next

Last updated on