Effacer les filtres
Effacer les filtres

how to get percentage of SVM result?

1 vue (au cours des 30 derniers jours)
hewaa mero
hewaa mero le 2 Oct 2013
Modifié(e) : hewaa mero le 2 Oct 2013
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.........

Réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by