SVMTRAIN - LEAST SQUARE METHOD OR QUADRATIC PROGRAMMING METHOD
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Shashank Prasanna
le 25 Fév 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
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!