quadprog function for non-separable data-set
古いコメントを表示
I want to implement svm for two sets of non-separable cases using svm primal form(without using built-in functions). In the minimize quadratic function, I have 1/2 norm(w)^2 + C*summation over all feature vectors(epsilon). If I use quaprog function, I am not sure if I need to have the vector 'f' since I have only one quadratic term in w. But without using 'f' the minimizing expression is not complete.
Could someone please help on how to build the matrices of 'quadprog' function for non-separable svm primal case?
Thanks so much
回答 (1 件)
Just set f=zeros(size(w)), if there is no linear term in your objective function.
5 件のコメント
rini
2013 年 3 月 2 日
I have no background in SVM, but based on wiki:SVM Primal Form, you indeed have f=0 and you also have non-trivial linear constraints that you have not mentioned. The constraints render the problem nonseparable, as long as they're not simple bound constraints.
rini
2013 年 3 月 11 日
Matt J
2013 年 3 月 11 日
Accept-clicking my answer is all the thanks I need ;)
カテゴリ
ヘルプ センター および File Exchange で Quadratic Programming and Cone Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!