private/som_train.m
b0a2dbf1
 function [sD sM] = som_train(svmlabel, svmdata, somOptions)
 
 som_size = somOptions.size;
 som_lattice = somOptions.lattice;
 
4b81e19c
 addpath(fullfile(getTbxPath,'somtoolbox2'));
d0ee75cf
 sD = som_data_struct(svmdata,'labels',num2str(svmlabel));
b0a2dbf1
 
a37f1788
 sM = som_make(sD,'msize', som_size,'lattice', som_lattice, 'tracking', 1, 'init', 'lininit');
b0a2dbf1
 sM = som_autolabel(sM,sD,'vote');
 
 end