20 cards · Public · Shuffle

Stanford CS229 - Machine Learning Principles & Core Algorithms

Master foundational machine learning theory and core algorithms with rigorous mathematical formulations from Stanford's CS229. Covers supervised learning, support vector machines, generalization theory, probabilistic models, and reinforcement learning.

Cards in this deck

(20 cards)

Preview terms and definitions before starting your study session.

#1
Term
Linear Regression & Mean Squared Error Cost Function
Definition
The cost function for linear regression measures the squared error between predicted values and true targets :
where is the number of training examples, and the factor simplifies math during differentiation.
#2
Term
Batch Gradient Descent Update Rule
Definition
Gradient descent minimizes by iteratively updating parameters in the direction of steepest descent with learning rate :
All parameters are updated simultaneously using the entire dataset per iteration.
#3
Term
Normal Equation for Linear Regression
Definition
The analytical, closed-form solution to minimize directly without iterations:
Where is the design matrix. Computing costs , making it computationally expensive when feature count is very large.
#4
Term
Logistic Regression Hypothesis & Cross-Entropy Loss
Definition
Hypothesis models using the logistic (sigmoid) function :
The negative log-likelihood (cross-entropy) cost function is:
#5
Term
Generative vs. Discriminative Algorithms
Definition
  • Discriminative Models: Learn directly or map inputs directly to class labels (e.g., Logistic Regression, Support Vector Machines).
  • Generative Models: Learn joint distribution and apply Bayes' Rule to infer class labels (e.g., Naive Bayes, Gaussian Discriminant Analysis).
#6
Term
Naive Bayes Classifier & Conditional Independence Assumption
Definition
Generative model that assumes features are conditionally independent given label :
Prediction is made using Bayes' Rule:
#7
Term
SVM Hard-Margin Optimization Objective
Definition
Finds the hyperplanes that maximize the geometric margin for linearly separable data:
Minimizing is equivalent to maximizing the functional/geometric margin.
#8
Term
SVM Soft-Margin Optimization & Hyperparameter C
Definition
Allows for non-separable data by introducing slack variables :
controls the tradeoff: large strictly penalizes misclassifications (higher variance), while small allows more margin violations (higher bias).
Showing 8 of 20 cards in this deck.
Study All Now