How do I find the indices of the Self Organizing Map (SOM) training set output

11 visualizaciones (últimos 30 días)
I'm using the SOM toolbox and have created the following:
net = selforgmap([10 10)];
[net,tr] = train(net,inputs);
where 'inputs' is a 5x10000 matrix of 5 parameters with 10000 samples.
using plotsomhits(net,inputs); shows how the 10000 samples are getting clustered.
Question: How do I output where each individual vector is clustered? For example where on the 10x10 grid is vector #1 located?
TIA
Scott

Respuesta aceptada

Shashank Prasanna
Shashank Prasanna el 5 de Ag. de 2013
Editada: Shashank Prasanna el 5 de Ag. de 2013
Here is an example that should help you:
net = selforgmap([10 10]);
[net,tr] = train(net,inputs); % Classify input data
op_som = vec2ind(net(inputs))';
for each input in inputs, op_som will have a numbering between 1 to n based on which cluster it belongs to.

Más respuestas (2)

Scott
Scott el 6 de Ag. de 2013
Works great, thanks Shashank! Scott

YILMAZ KAYA
YILMAZ KAYA el 25 de Ag. de 2020
It works. Thanks so much....

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by