Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Carlos Mejia
2S-SOM_versionCM
Commits
9687455b
Commit
9687455b
authored
Jan 18, 2019
by
Carlos Mejia
Browse files
Adding return of lambda et eta un Results struct in Code-2S-SOM/learn_2s_som.m
parent
1903aa44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
Code-2S-SOM/learn_2s_som.m
Code-2S-SOM/learn_2s_som.m
+13
-8
No files found.
Code-2S-SOM/learn_2s_som.m
View file @
9687455b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment