Commit 9687455b authored by Carlos Mejia's avatar Carlos Mejia
Browse files

Adding return of lambda et eta un Results struct in Code-2S-SOM/learn_2s_som.m

parent 1903aa44
......@@ -422,14 +422,17 @@ function [StsMap sMap_denorm Resultout sMapPTout] = learn_2s_som(A,nb_neurone,va
[Result(i,j).sMap Result(i,j).bmus Result(i,j).Alpha Result(i,j).Beta] = som_batchtrainRTOM( ...
sMap, sD_norm, ...
'TypeAlgo','2SSOM', ...
'DimData',DimData, ...
'DimBloc',DimBloc, ...
'lambda', lambda(i), ...
'eta',eta(j), ...
'radius',rad_2s_som, ...
'trainlen',trlen_2s_som, ...
'tracking',tracking);
'TypeAlgo', '2SSOM', ...
'DimData', DimData, ...
'DimBloc', DimBloc, ...
'lambda', lambda(i), ...
'eta', eta(j), ...
'radius', rad_2s_som, ...
'trainlen', trlen_2s_som, ...
'tracking', tracking);
Result(i,j).lambda = lambda(i);
Result(i,j).eta = eta(j);
current_perf = som_distortion(Result(i,j).sMap,sD_norm);
fprintf(1,' --> som_distortion=%s\n', num2str(current_perf));
......@@ -488,6 +491,8 @@ function [StsMap sMap_denorm Resultout sMapPTout] = learn_2s_som(A,nb_neurone,va
end
if (bool_2ssom)
St.lambda = Result(iBest).lambda;
St.eta = Result(iBest).eta;
St.bmus = Result(iBest).bmus;
St.Alpha = Result(iBest).Alpha;
St.Beta = Result(iBest).Beta;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment