MODULE 02 · LESSON 03 · Linear Regression
Gradient Descent for Linear Regression step by step
Derive the gradients of the linear regression loss and use them to train a model on a real dataset. Understand the cost of a full-data update, stochastic gradient descent and batch sampling, then implement SGD in Python and compare it with scikit-learn’s SGDRegressor. Explore why individual gradients disagree, why implementations differ slightly, and how learning rates and local minima affect training. Familiarity with graphs and derivatives is enough; the calculus lecture covers the required background.
Free to watch No login required