Gradient Descent, Machine Learning.
negative class is y = −1. In addition, not that this is for a single sample; if trained on a batch all that’s required it to sum across the different samples. If we represent the negative class as y = −1 instead of zero, the following loss may be used. (Notice how this is analogous to the formula