function [sD sM] = som_train(svmlabel, svmdata, somOptions)

som_size = somOptions.size;
som_lattice = somOptions.lattice;

addpath(fullfile(getTbxPath,'somtoolbox2'));
sD = som_data_struct(svmdata,'labels',num2str(svmlabel));

sM = som_make(sD,'msize', som_size,'lattice', som_lattice, 'tracking', 1, 'init', 'lininit');
sM = som_autolabel(sM,sD,'vote');

end