Exercises

These exercises check the model-as-function ideas from the chapter.

DL-C02-C-001Exercise: Prediction

Let y_hat = wx + b, with x = 6, w = 2, and b = -5. What is y_hat?

Compute it first, then check your number.

DL-C02-C-002Exercise: Parameter identity

In f(x; theta), enter 1 if theta represents parameters, or 0 if it represents the target.

Compute it first, then check your number.

DL-C02-C-003Exercise: Forward-pass shape

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.

DL-C02-C-004Exercise: Target or prediction

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.

DL-C02-C-005Exercise: Signed error

A model predicts 14, and the target is 9. Compute prediction - target.

Compute it first, then check your number.

DL-C02-C-006Exercise: Capacity

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.