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

8 visualizaciones (últimos 30 días)
rangga sadoza
rangga sadoza el 23 de Dic. de 2013
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;

Respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by