How can i change the kernel in SVM classification
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!