Exercises
These exercises check the linear-model ideas from the chapter.
Let x = [2, -1], w = [5, 3], and b = 4. Compute x . w + b.
Compute it first, then check your number.
In score = -2x_1 + 6x_2 - 9, what is the bias?
Compute it first, then check your number.
A multiclass classifier has 7 classes. How many scores should it produce for one example?
Compute it first, then check your number.
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.
For score = 2x_1 - x_2 - 3, compute the score at point (4, 5).
Compute it first, then check your number.
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.