SVMTRAIN - LEAST SQUARE METHOD OR QUADRATIC PROGRAMMING METHOD
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
Shashank Prasanna
2013년 2월 25일
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
카테고리
도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!