# HG changeset patch # User Dan Stowell # Date 1368175304 -3600 # Node ID d58b1f9bd24b1b956dc77981539fdc62243f290f # Parent a22e7701516e1348a7ced58c55e43c28d7778de2 overall confusion matrix too diff -r a22e7701516e -r d58b1f9bd24b scene_classification/sceneClassificationMetrics_collectevals.m --- a/scene_classification/sceneClassificationMetrics_collectevals.m Tue May 07 19:59:00 2013 +0100 +++ b/scene_classification/sceneClassificationMetrics_collectevals.m Fri May 10 09:41:44 2013 +0100 @@ -4,7 +4,9 @@ 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']) +subs = cellstr(['cooper_tam_system0'; 'cooper_tam_system1'; 'cooper_tam_system2'; 'cooper_tam_system0_b'; 'cooper_tam_system1_b'; 'cooper_tam_system2_b'; 'elizalde'; 'geiger'; 'johnshopkins'; 'krijnders'; 'mtg_roma'; 'nam_hyung_lee'; 'olivetti'; 'olivetti_secondrun'; 'olivetti_withdels'; 'pooledmajority'; 'rahman_system1'; 'rahman_system2'; 'rakotomamonjy_gasso'; 'smacpy']) + +bigconfusion = 0 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'); @@ -17,7 +19,13 @@ 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); - + if bigconfusion == 0 + bigconfusion = confusionMat; + else + bigconfusion += confusionMat; + end end +dlmwrite(sprintf('%s/eval_results_sc/total_confusion.csv', basepath), bigconfusion); +bigconfusion fclose(csvfp);