git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
48fb182
Branches
Tags
master
SVMCrossVal.git
private
svm_class_performance.m
new labels, some cleanup
Christoph Budziszewski
commited
48fb182
at 2009-08-07 17:23:37
svm_class_performance.m
Blame
History
Raw
function decodePerformance = svm_class_performance(svmlabel,svmdata,svmopts) global NODALYZE_LIBSVM; addpath(fullfile(getTbxPath,NODALYZE_LIBSVM)); 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