I am trying to compute the gradient of multi class hinge loss function but i am kinda confused.

First things first, I have a W matrix [10xD] (10 classes) that contains the weights.

The loss function is as follows:

enter image description here

Do you know how to compute the gradient of the loss function? Should it be a matrix containing all the partial derivatives wrt w? Thank you.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.