how to use quadratic and polynomial kernel in svmtrain..?

8 views (last 30 days)
how to make support vector with this kernel..? here it is my code with quadratic. when i run it, it's work BUT my support vector result is 0..
function NET = trainnet(IMGDB)
options = optimset('maxiter',100000);
load IMGDB; T = cell2mat(IMGDB(2,:)); P = cell2mat(IMGDB(3,:));
net = svmtrain(P',T','Kernel_Function','quadratic','Polyorder',2,'quadprog_opts',options);
fprintf('Number of Support Vectors: %d\n',size(net.SupportVectors,1)); classes = svmclassify(net,P'); fprintf('done. %d \n',sum(abs(classes-T'))); save net net NET = net;

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!