all features implemented.
Christoph Budziszewski

Christoph Budziszewski commited on 2009-04-07 17:00:53
Zeige 1 geänderte Dateien mit 3 Einfügungen und 2 Löschungen.


git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@175 83ab2cfd-5345-466c-8aeb-2b2739fb922d
... ...
@@ -35,7 +35,7 @@ for subjectDataID = 1:nSubjects
35 35
 
36 36
     display(sprintf('%u -fold cross validation for %u timeslices.\n',somOpts.nfold,size(1:timeLineEnd-timeLineStart+1,2)));
37 37
 
38
-
38
+    decode_timeline = [];
39 39
     for timeIndex = 1:timeLineEnd-timeLineStart+1
40 40
         svmstruct = calculateSVMTables(timePointMatrix{subjectDataID},timeIndex);
41 41
         nElements = length(svmstruct.svmlabel);
... ...
@@ -68,8 +68,9 @@ for subjectDataID = 1:nSubjects
68 68
 
69 69
             cross_value = [cross_value, performance];
70 70
         end
71
-        decode.decodePerformance = [decode.decodePerformance; cross_value];
71
+        decode_timeline = [decode_timeline; mean(cross_value)];
72 72
     end
73
+    decode.decodePerformance = [decode.decodePerformance decode_timeline];
73 74
 end
74 75
 display('decode done');
75 76
 end
76 77