How can i change the kernel in SVM classification

2 ビュー (過去 30 日間)
Tsalsabilla Winny Junika
Tsalsabilla Winny Junika 2019 年 5 月 29 日
By using linear kernel I got the result using svmtrain() and svmclassify() function. But the result obtained is not so accurate. When I used rbf_kernel and polynomial I got an error as follows. Please help me how to use parameters with example...
svmStruct = svmtrain(X(P.training,:),Y(P.training),'showplot',true);
(I know the svmStruct could be change with :
SVMStruct = svmtrain(X(P.test,:),Y(P.test),'Kernel_Function', 'polynomial', 'Polyorder', 3);
C = svmclassify(svmStruct,X(P.training,:),'showplot',true);
but, what about the C??? Because i've tried so many times but still error :(
Can you guys help me? thanks

回答 (0 件)

カテゴリ

Help Center および File ExchangePolynomials についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by