changeset 4:d58b1f9bd24b

overall confusion matrix too
author Dan Stowell <dan.stowell@elec.qmul.ac.uk>
date Fri, 10 May 2013 09:41:44 +0100
parents a22e7701516e
children 1f977a3aab1a
files scene_classification/sceneClassificationMetrics_collectevals.m
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);