Exercises
These exercises check the model-as-function ideas from the chapter.
Let y_hat = wx + b, with x = 6, w = 2, and b = -5. What is y_hat?
Compute it first, then check your number.
In f(x; theta), enter 1 if theta represents parameters, or 0 if it represents the target.
Compute it first, then check your number.
X has shape (12, 5), W has shape (5, 4), and b has shape (4). What is the shape of XW + b?
Compute it first, then check your number.
A dataset supplies y. A model computes y_hat. Enter 1 if y_hat is the prediction, or 0 if y is the prediction.
Compute it first, then check your number.
A model predicts 14, and the target is 9. Compute prediction - target.
Compute it first, then check your number.
Enter 1 if changing parameters changes which function from the model family is used, or 0 if parameters have no effect.
Compute it first, then check your number.