Stanford CS229 Machine Learning | Spring 2026 | Lecture 2: Supervised Learning Setup
Stanford Online · 1:18:10 · 6 days ago
Supervised learning functions by mapping input data to outputs through iterative processes that minimize prediction error. By adjusting internal parameters based on observed differences between predictions and actual labels, these models generalize patterns to unseen data.
-
Supervised learning — A system learns by mapping input data (X) to known output labels (Y) provided in a training set .
-
Regression tasks — These predict continuous numerical values, such as financial prices, rather than fixed categories .
-
Classification tasks — These predict discrete labels, such as identifying if an image contains a specific animal .
-
Linear models — Predictions rely on weighted combinations of input features to establish a trend .
-
Error calculation — Performance is measured by reducing the distance between the model's prediction and the actual observed value .
-
Gradient descent — Optimization involves calculating derivatives to find the direction that reduces error and adjusting parameters accordingly .
-
Learning rate — This value defines the distance the model moves toward the optimal solution during each update cycle .
-
Mini-batch updates — Processing small samples of data rather than the entire set improves computational performance when dealing with large datasets .
-
Normal equations — A mathematical method provides a direct calculation for optimal weights in linear regression without requiring iterative steps .
-
What distinguishes regression from classification in supervised learning?
-
How does the use of mini-batches affect the training process?