By using d(), the minimization of the error rate can be rewritten as the minimization of the sum of 0-1 (step) losses of the given training data.
arg min λ L λ where δ(r) is a step function returning 0 if r<0 and 1 otherwise.