git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
c73e97a
Branches
Tags
master
SVMCrossVal.git
private
svm_class_performance.m
moved stuff, fixing plotDecode
Christoph Budziszewski
commited
c73e97a
at 2009-03-16 14:41:06
svm_class_performance.m
Blame
History
Raw
function decodePerformance = svm_class_performance(svmlabel,svmdata,svmopts) addpath 'libsvm-mat-2.88-1'; svmmodel = svmtrain(svmlabel,svmdata,svmopts); classperformance = []; for class = unique(svmlabel)'; filterindex = find(class == svmlabel); testing_label = svmlabel(filterindex); testing_data = svmdata(filterindex); [plabel accuracy dvalue] = svmpredict(testing_label,testing_data,svmmodel,''); classperformance = [classperformance accuracy(1)]; end decodePerformance = [decodePerformance; classperformance]; end