Lecture Introduction and Logistics
- 24Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is the purpose of the Ed thread set up for lecture questions?
To allow students to ask questions during class, as the anonymous Zoom feature is no longer available.
Or swipe the card
24 cards
What is the purpose of the Ed thread set up for lecture questions?
To allow students to ask questions during class, as the anonymous Zoom feature is no longer available.
What two downloads does the instructor provide before his lectures?
Handwritten notes of what he will talk about and a template for students to follow along.
What is the plan for the first three lectures according to the instructor?
To build increasingly sophisticated machine learning models: linear regression, classification, and then the exponential family of models.
What is the underlying workhorse algorithm that will be introduced in the simplest setting?
Stochastic gradient descent.
What is supervised learning?
A type of machine learning where we have a training set of input-output pairs (xi,yi) and need to find a prediction function h:X→Y that maps inputs to outputs.
What is a training set in supervised learning?
A set of n pairs (x1,y1),(x2,y2),…,(xn,yn), where xi∈X are inputs and yi∈Y are labels.
What is the difference between classification and regression?
Classification has discrete y (e.g., yes/no, categories), while regression has continuous y (e.g., house prices).
Why does the instructor emphasize looking at data before running fancy models?
To understand what is actually in the dataset; many engineers skip this step and start modeling without knowing their data.
What is the form of a linear regression model?
hθ(x)=θ0+θ1x1+θ2x2+⋯+θdxd=∑j=0dθjxj, with x0=1.
How is the training data represented in matrix form for linear regression?
As a design matrix X with n rows (one per example) and d+1 columns (features including the intercept column of ones).
What is the cost function used in linear regression?
The mean squared error: J(θ)=21∑i=1n(hθ(xi)−yi)2.
What is the principle of picking a good model in supervised learning?
We want to find θ that minimizes the cost function J(θ).
What is gradient descent?
An iterative optimization algorithm that updates parameters in the direction of the negative gradient: θj(t+1)=θj(t)−α∂θj∂J(θ(t)).
What is the gradient of the cost function for linear regression?
∂θj∂J(θ)=∑i=1n(hθ(xi)−yi)xij.
Why is the 1/2 factor included in the cost function?
So that when taking the derivative, the 2 from the square cancels with the 1/2, simplifying the gradient.
What is batch gradient descent?
Gradient descent where each update uses the entire training set to compute the gradient.
What is stochastic gradient descent (SGD)?
Gradient descent where each update uses a single randomly chosen training example to approximate the gradient.
What is mini-batch gradient descent?
Gradient descent where each update uses a small random subset (mini-batch) of the training data, typically of size B (e.g., 128).
Why might mini-batch gradient descent be preferred over full batch?
Because modern hardware can process a mini-batch almost as fast as a single example, and it reduces redundancy from near-duplicate data.
What is the normal equation in linear regression?
The closed-form solution for the optimal parameters: θ=(XTX)−1XTy.
What are the trade-offs between gradient descent and the normal equation?
Gradient descent is iterative but scales to large data; normal equation gives an exact solution but requires inverting a matrix of size O(d3).
In modern machine learning, is it guaranteed that gradient descent finds the global minimum for non-convex cost functions?
No, for non-convex functions gradient descent may find a local minimum or saddle point, and there is no guarantee of finding the global minimum.
What is overfitting?
When a model fits the training data too closely, capturing noise and failing to generalize to new data.
What did a recent paper by Misha Belkin show about interpolation?
For some models, perfectly fitting the training data (interpolation) can still lead to optimal generalization.

Ask anything
We've read this whole study set, so questions about it get the best answers.