I have a data set with 36000 rows and 9 columns. so n<< m. this is multi classification SVM. I solved this by primal model in OSQP. then I used R package e710 and svm with linear kernel.
the accuracy of these 2 result is very different. linear kernel is much better than primal model,
I can't understand why!shouldn't they to be the same or close? how we can improve accuracy of primal model?
How was my primal model?
1- I didn't use kernel in primal. It was original model:
min $WW^{T}+C epsilon$
s.t
$y(WX+b)>= 1 - epsilon$
$epsilon >=0$
this is a quadratic program and I solve it by OSQP. I tried different cost for epsilon: 8,10,20, even 100
checking accuracy:
I used a simple prediction model. from the above model we can find W and then predict :
$f(x)=Wx+b$
since there are 3 classes, we choose the highest f(x).