Thread: Question 12
View Single Post
Old 09-13-2012, 10:40 AM
MLearning MLearning is offline
Senior Member
Join Date: Jul 2012
Posts: 56
Default Re: Question 13

I think it has to do with the fact that qp ( and quadprog in MATLAB) provide alpha values that are negligbly small. By setting an appropriate threshold, it is possible to filter out these very small values.

In Homework 7, one of the students introduced a trick as means to go around the initialization problem in qp (or quadprod). When I applied this trick, qp and libsvm provide different number of SVs. However, when I initialize all alphas to a vector of zeros, libsvm and Octave's qp yield the same number of SVs.

Last edited by MLearning; 09-13-2012 at 11:02 AM. Reason: I just checked that qp and libsvm (command line) give the same number of support vectors.
Reply With Quote