Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I would like to solve L2-loss SVM (i.e., error term is quadratic). How should I modify the code ?

code Error quadratic SVM term
0
10 Posted

I would like to solve L2-loss SVM (i.e., error term is quadratic). How should I modify the code ?

0
10

It is extremely easy. Taking c-svc for example, to solve min_w w^Tw/2 + C \sum max(0, 1- (y_i w^Tx_i+b))^2, only two places of svm.cpp have to be changed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123