SVMTRAIN - LEAST SQUARE METHOD OR QUADRATIC PROGRAMMING METHOD
Show older comments
Hi,
I am using svmtrain function. QP method is really slow (too much) and sometimes it crashes. When I use LS (least square) method it is SUPER fast.
Could you explain me what is the difference btw these two methods. In theory do they have to give the same result ? why one is much faster than the other method ?
Thank you for your help.
Accepted Answer
More Answers (1)
Shashank Prasanna
on 25 Feb 2013
QP solves the quadratic optimization using the Hessian. In a quick sentence, the advantage is that it is higher in precision and the disadvantage is that it doesn't scale for large problems (large training data).
LS just solves a linear system using the \ operator for a least square fit. There may be precision difference between the two but both are good and depends on the nature of the problem.
Take a look at the following page in the documentation:
Also feel free to take a look at the code by:
>> edit svmtrain
Categories
Find more on MATLAB 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!