How can I use Hinge loss for Multi-class Support Vector Machine algorithm?

I have coded a Multi-class SVM classifier using Hinge loss as loss function. I worked on the knowledge in this article: https://cs231n.github.io/linear-classify/.
But instead of decreasing and converging, my loss function increases to infinity after few loops.
I attach here file .m. Could anyone show me how I can fix this bug?

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

質問済み:

2018 年 5 月 7 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by