Main Content

plotsomhits

Plot self-organizing map sample hits

Syntax

plotsomhits(net,inputs)

Description

plotsomhits(net,inputs) plots a SOM layer, with each neuron showing the number of input vectors that it classifies. The relative number of vectors for each neuron is shown via the size of a colored patch.

This plot supports SOM networks with hextop and gridtop topologies, but not tritop or randtop.

Examples

Plot SOM Sample Hits

x = iris_dataset;
net = selforgmap([5 5]);
net = train(net,x);

{"String":"Figure Neural Network Training (31-Aug-2022 01:37:21) contains an object of type uigridlayout.","Tex":[],"LaTex":[]}

plotsomhits(net,x)

{"String":"Figure SOM Sample Hits (plotsomhits) contains an axes object. The axes object with title Hits contains 75 objects of type patch, text.","Tex":"Hits","LaTex":[]}

Version History

Introduced in R2008a