git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
4b81e19
Branches
Tags
master
SVMCrossVal.git
private
svm_class_performance.m
spm2 compatibility, start change study
Christoph Budziszewski
commited
4b81e19
at 2009-05-22 11:16:41
svm_class_performance.m
Blame
History
Raw
function decodePerformance = svm_class_performance(svmlabel,svmdata,svmopts) addpath(fullfile(getTbxPath,'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