by underflow · 10y ago · 0 comments
Not exactly because this would be optimizing the number of correctly classified elements. Instead you minimize the sum of abs(WX) for each misclassified examples.
x=1,y=1 => max(0, -(1 x 1)) = 0.
x=1,y=-1 => max(0, -(-1 x 1)) = 1.
x=-1,y=1 => max(0, -(1 x -1)) = 1.
x=-1,y=-1 => max(0, -(-1 x -1)) = 0.
In the formulas of the slides (and in the code), for training I compute the loss of an example X and it's expected target as: L(XW, target) What you define is minimizing L(transfer(XW), target) which is not easily optimizable.