MST0052 · Lecture 4 supplement · Optional
01
02
scikit-learn actually solves this via SVD — same answer, better numerics (backup).
03
This is the "variance" in the bias-variance tradeoff — Lecture 6.
Closed form of the penalised objective from the L4 deck.
04
Solve the normal equations in one shot. What LinearRegression does.
LinearRegression
Step downhill along −∇ until it flattens. How neural networks train.
Standardise features first — stochastic gradient descent (SGDRegressor) assumes comparable scales. Largest gap here 0.035; with tol=None it runs all 10,000 epochs and the gap falls to 0.0035.
SGDRegressor
tol=None
The Hessian 2X⊤X is positive semi-definite — the bowl is convex, the stationary point is the global minimum.