Hi everyone,
I need to implement the squred hinge loss in order to train a neural network using a svm-like classifier on the last layer.
It is an image classification problem on cifar dataset, so it is a multi class classification. The idea is to have multiple “scores” for each output neuron of the network and the network should be trained minimizing the sum of the losses for each class.
Is there an already implemented version of this loss? If not, what is the easiest way to implement it?
Thank you!