how to use quadratic and polynomial kernel in svmtrain..?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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;
0 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!