Learn Before
Formula
Linear Regression Design Matrix Notation
When predicting labels for an entire dataset consisting of examples, it is mathematically convenient to organize the features into a design matrix , where each row represents an example and each column a feature. The vector of predictions for all examples can then be concisely computed using a matrix-vector product with the weight vector , adding the bias term via broadcasting: .
0
1
Updated 2026-05-02
Tags
D2L
Dive into Deep Learning @ D2L