Flashcard Deck · 21 cards · Public

Stanford CS229 - Machine Learning: Supervised Learning & Loss Functions

Master foundational supervised learning concepts from Stanford's CS229, including gradient descent, linear and logistic regression, loss optimization, and the bias-variance tradeoff.

Cards in this deck

(21 cards)

Preview terms and definitions before starting your study session.

#1
Term
Supervised Learning
Definition
A machine learning paradigm where the algorithm is provided with a training dataset consisting of labeled input-output pairs . The goal is to learn a mapping function that accurately predicts outputs for unseen inputs.
#2
Term
Hypothesis Function (Linear Regression)
Definition
The linear predictor function defined as , where represents the parameter vector and is the intercept/bias term.
#3
Term
Mean Squared Error (MSE) Cost Function
Definition
The standard loss function for linear regression measuring average squared prediction error:

The factor of simplifies the derivative during gradient optimization.
#4
Term
Batch Gradient Descent
Definition
An optimization algorithm that updates parameters by computing the gradient of the cost function over the entire dataset at every step:
#5
Term
Stochastic Gradient Descent (SGD)
Definition
An optimization algorithm that updates parameters based on a single training example at a time:

It is significantly faster than Batch Gradient Descent for large datasets, though its updates are noisier.
#6
Term
Normal Equation
Definition
An analytical, closed-form solution for linear regression parameter estimation:

Where is the design matrix and is the target vector. It eliminates the need for iterative gradient descent but requires matrix inversion time.
#7
Term
Locally Weighted Regression (LWR)
Definition
A non-parametric algorithm that fits a local regression line around a target point by minimizing:

Where weights are typically exponential functions of distance: with bandwidth parameter .
#8
Term
Logistic Regression Hypothesis
Definition
A probabilistic classification model defined as , where is the sigmoid/logistic function:

Outputs represent estimated probabilities .
Showing 8 of 21 cards in this deck.
Study All Now

Related Flashcard Sets

Explore similar study materials created by the community

Browse community decks