1 / 10
INTRO

A Model's Prediction Is Matrix Multiplication

Once data is organized as X, a linear model's prediction is nothing more than the matrix-vector multiplication from Chapter 4: ŷ = Xw.

The prediction Xw compared against the true target y, with a residual gap between them