Browse code

minor changes in coding style

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@113 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on 25/01/2009 22:25:53
Showing 1 changed files
... ...
@@ -59,7 +59,7 @@ maxPerformance = -inf;
59 59
                 svmlabel  = svmlabel(rndindex);
60 60
             end
61 61
 
62
-            SVM_METHOD = 'class performance'
62
+            SVM_METHOD = 'som training'
63 63
             switch SVM_METHOD;
64 64
                 case 'libsvm crossval'
65 65
                     performance  = svmtrain(svmlabel, svmdata, svmargs);
... ...
@@ -87,10 +87,13 @@ maxPerformance = -inf;
87 87
                 case 'som training'
88 88
                     display('SOM TRAINING');
89 89
                     addpath 'somtoolbox2';
90
-                    sD = som_data_struct(svmdata);
90
+                    sD = som_data_struct(svmdata,'label',num2str(svmlabel));
91 91
                     assignin('base','sD',sD);
92 92
                     sM = som_make(sD,'msize', [3 4],'lattice', 'rect');
93 93
                     
94
+                    assignin('base','sD',sD);
95
+                    assignin('base','sM',sM);
96
+                    
94 97
             end
95 98
             
96 99
         end