About this question
With reference to the research paper entitled Sentiment Embeddings with Applications to Sentiment Analysis, I am trying to implement its sentiment ranking model in Python, for which I am required to optimise the following hinge loss function:
los Rank=∑tmax(0,1−δs(t)frank0(t)+δs(t)frank1(t))Unlike the usual mean square error, I cannot find its gradient to perform backpropagation. How do I calculate the gradient of this loss function?