# hinge loss function:

Using this syntax, we can put it all together, obtaining the hinge loss function: L_{i} = \sum_{j \neq y_{i}} max(0, s_{j} - s_{y_{i}} + 1) Note: I’m purposely skipping the regularization parameter for now. We’ll return to regularization i…