Browse code

new labels, some cleanup

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

Christoph Budziszewski authored on07/08/2009 17:23:37
Showing1 changed files
... ...
@@ -1,9 +1,10 @@
1 1
 function [sD sM] = som_train(svmlabel, svmdata, somOptions)
2
+global NODALYZE_SOMTOOLBOX;
3
+addpath(fullfile(getTbxPath,NODALYZE_SOMTOOLBOX));
2 4
 
3 5
 som_size = somOptions.size;
4 6
 som_lattice = somOptions.lattice;
5 7
 
6
-addpath(fullfile(getTbxPath,'somtoolbox2'));
7 8
 sD = som_data_struct(svmdata,'labels',num2str(svmlabel));
8 9
 
9 10
 sM = som_make(sD,'msize', som_size,'lattice', som_lattice, 'tracking', 1, 'init', 'lininit');
Browse code

spm2 compatibility, start change study

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

Christoph Budziszewski authored on22/05/2009 11:16:41
Showing1 changed files
... ...
@@ -3,7 +3,7 @@ function [sD sM] = som_train(svmlabel, svmdata, somOptions)
3 3
 som_size = somOptions.size;
4 4
 som_lattice = somOptions.lattice;
5 5
 
6
-addpath 'somtoolbox2';
6
+addpath(fullfile(getTbxPath,'somtoolbox2'));
7 7
 sD = som_data_struct(svmdata,'labels',num2str(svmlabel));
8 8
 
9 9
 sM = som_make(sD,'msize', som_size,'lattice', som_lattice, 'tracking', 1, 'init', 'lininit');
Browse code

added some batch files, workaround for NAN - Bug

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

Christoph Budziszewski authored on23/04/2009 16:48:20
Showing1 changed files
... ...
@@ -6,7 +6,7 @@ som_lattice = somOptions.lattice;
6 6
 addpath 'somtoolbox2';
7 7
 sD = som_data_struct(svmdata,'labels',num2str(svmlabel));
8 8
 
9
-sM = som_make(sD,'msize', som_size,'lattice', som_lattice);
9
+sM = som_make(sD,'msize', som_size,'lattice', som_lattice, 'tracking', 1, 'init', 'lininit');
10 10
 sM = som_autolabel(sM,sD,'vote');
11 11
 
12 12
 end
13 13
\ No newline at end of file
Browse code

X-SOM finished!

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

Christoph Budziszewski authored on07/04/2009 15:54:26
Showing1 changed files
... ...
@@ -3,15 +3,10 @@ function [sD sM] = som_train(svmlabel, svmdata, somOptions)
3 3
 som_size = somOptions.size;
4 4
 som_lattice = somOptions.lattice;
5 5
 
6
-display('SOM TRAINING');
7 6
 addpath 'somtoolbox2';
8
-sD = som_data_struct(svmdata,'label',num2str(svmlabel));
9
-assignin('base','sD',sD);
10
-sM = som_make(sD,'msize', som_size,'lattice', som_lattice);
7
+sD = som_data_struct(svmdata,'labels',num2str(svmlabel));
11 8
 
9
+sM = som_make(sD,'msize', som_size,'lattice', som_lattice);
12 10
 sM = som_autolabel(sM,sD,'vote');
13 11
 
14
-assignin('base','sD',sD);
15
-assignin('base','sM',sM);
16
-display('type ''figure'' before visualisation');
17 12
 end
18 13
\ No newline at end of file
Browse code

manual renamings, better FBS savePath (ISO-Date)

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

Christoph Budziszewski authored on07/04/2009 15:07:27
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
1
+function [sD sM] = som_train(svmlabel, svmdata, somOptions)
2
+
3
+som_size = somOptions.size;
4
+som_lattice = somOptions.lattice;
5
+
6
+display('SOM TRAINING');
7
+addpath 'somtoolbox2';
8
+sD = som_data_struct(svmdata,'label',num2str(svmlabel));
9
+assignin('base','sD',sD);
10
+sM = som_make(sD,'msize', som_size,'lattice', som_lattice);
11
+
12
+sM = som_autolabel(sM,sD,'vote');
13
+
14
+assignin('base','sD',sD);
15
+assignin('base','sM',sM);
16
+display('type ''figure'' before visualisation');
17
+end
0 18
\ No newline at end of file