Exercises

These exercises check the linear-model ideas from the chapter.

DL-C03-C-001Exercise: Linear score

Let x = [2, -1], w = [5, 3], and b = 4. Compute x . w + b.

Compute it first, then check your number.

DL-C03-C-002Exercise: Bias

In score = -2x_1 + 6x_2 - 9, what is the bias?

Compute it first, then check your number.

DL-C03-C-003Exercise: Score vector size

A multiclass classifier has 7 classes. How many scores should it produce for one example?

Compute it first, then check your number.

DL-C03-C-004Exercise: Batch score shape

X has shape (20, 8), W has shape (8, 3), and b has shape (3). What is the score matrix shape?

Compute it first, then check your number.

DL-C03-C-005Exercise: Boundary score

For score = 2x_1 - x_2 - 3, compute the score at point (4, 5).

Compute it first, then check your number.

DL-C03-C-006Exercise: Linear limitation

Enter 1 if a single binary linear classifier in two dimensions has a line boundary, or 0 if its boundary can be any curve.

Compute it first, then check your number.