Solutions
DL-C06-C-001
prediction - target = 6 - 10 = -4
DL-C06-C-002
error = 2 - 5 = -3
squared_error = (-3)^2 = 9
DL-C06-C-003
(4 + 4 + 1) / 3 = 9 / 3 = 3
DL-C06-C-004
The true class is class 3, so p_true is the third entry: 0.7.
DL-C06-C-005
Subtract the maximum logit, 4.
[4, 1, -2] - 4 = [0, -3, -6]
The second shifted value is -3.
DL-C06-C-006
For one-of-many classification, multiclass cross-entropy is the usual first choice because it rewards assigning high probability to the true class.