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

1 view (last 30 days)
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?

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!