Christoph Budziszewski commited on 2009-01-25 22:25:53
Zeige 1 geänderte Dateien mit 5 Einfügungen und 2 Löschungen.
git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@113 83ab2cfd-5345-466c-8aeb-2b2739fb922d
... | ... |
@@ -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 |
97 | 100 |