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 Exchange 中查找有关 Statistics 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