Mercurial > hg > aasp-d-case-metrics
view scene_classification/sceneClassificationMetrics_collectevals.m @ 3:a22e7701516e
write out confusion matrices too
author | Dan Stowell <dan.stowell@elec.qmul.ac.uk> |
---|---|
date | Tue, 07 May 2013 19:59:00 +0100 |
parents | dcaf371d33e3 |
children | d58b1f9bd24b |
line wrap: on
line source
% Script to invoke the evaluation on all the output from the submissions, which must previously have been collected. % Compiles the accuracies etc into a CSV file basepath = '/home/dan/aasp_april2013_eval' numfolds = 5 % then using the list of submissions from the folderlisting: subs = cellstr(['cooper_tam_system0'; 'cooper_tam_system1'; 'cooper_tam_system2'; 'elizalde'; 'geiger'; 'johnshopkins'; 'krijnders'; 'mtg_roma'; 'nam_hyung_lee'; 'olivetti'; 'olivetti_secondrun'; 'pooledmajority'; 'rahman_system1'; 'rahman_system2'; 'rakotomamonjy_gasso'; 'smacpy']) csvfp = fopen(sprintf('%s/eval_results_sc/eval_results_sc.csv', basepath), 'w+'); fprintf(csvfp, 'submission,acc,std,confint,accfold1,accfold2,accfold3,accfold4,accfold5\n'); for which=1:length(subs) f = subs{which}; subpath = sprintf('%s/submitter_filelists/%s.txt', basepath, f) [confusionMat, AccFolds, Acc, Std] = sceneClassificationMetrics_eval(numfolds, sprintf('%s/filelist_GTs.txt', basepath), subpath); Acc ConfInt = Std * 1.96 / sqrt(numfolds) fprintf(csvfp, '%s,%g,%g,%g,%g,%g,%g,%g,%g\n', f, Acc, Std, ConfInt, AccFolds(1), AccFolds(2), AccFolds(3), AccFolds(4), AccFolds(5)); % and write confusion matrices out dlmwrite(sprintf('%s/eval_results_sc/confusion_%s.csv', basepath, f), confusionMat); end fclose(csvfp);