Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Artificial intelligence
  3. Question
Artificial intelligence

How can I calculate the gradient of hinge loss?

Asked by Andrea Bailey May 16, 2022 1.2K views 1 answer
Share

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?

Your answer

1 Answer

More Artificial intelligence discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Artificial Intelligence Blogs

Guides, tips and career advice on Artificial Intelligence from JanBask experts.