MRG DOC make loss function in SGD consistent with subgradient.

 Comment by Martin Jaggi via mail :)

(alternatively we could add a factor in the subgradient but I think this one is nicer)