SOM codebook vectors output Follow

Illustration
Johanna_torppa_76 - 2021-06-18T15:02:05+00:00
Question: SOM codebook vectors output Follow

I am training SOM using the Deep Learning toolboxes train() function. How do I get out the SOM node vectors, i.e., the learned codebook vectors?  

Expert Answer

Profile picture of John Williams John Williams answered . 2025-11-20

net.IW{1}
will give you the codebook vectors/weights. For example:
 
 
x = simplecluster_dataset;
net = selforgmap([8 8]);
net = train( net, x );
net.IW{1}

It isn't the most intuitive to find the things you want in an SOM from the Deep Learning toolbox. I constantly forgot where all my parameters were when I used it. It uses the same network class as deep networks so there is a lot of stuff in there totally irrelevant to SOMs.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!