how to get percentage of SVM result?

1 次查看(过去 30 天)
hewaa mero
hewaa mero 2013-10-2
编辑: hewaa mero 2013-10-2
Hello every one i'm glad if some one can help or answer me, my problem is I want to get SVM percentage of SVM after classifying test with train, I've 56 img for train and 2 img for test I tried by these code but always give me 0.5000 which is mean 50 % percentage even I changed test imgs is the same result.
test_row =2;
for s=1:56
for j=1:test_row
[c1(s)] = svmclassify(struct,test_img(j,:));
end
end
for t=1:length(c1)
if c1(t)==2;
c1(t)=0;
end
end
F=sum(c1(1:28))/28;
M=1-sum(c1(29:56))/28;
average=(F+M)/2
thank you.........

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by