Main Content

plotsomnd

Plot self-organizing map neighbor distances

Syntax

plotsomnd(net)

Description

plotsomnd(net)plots aSOMlayer showing neurons as gray-blue patches and their direct neighbor relations with red lines. The neighbor patches are colored from black to yellow to show how close each neuron’s weight vector is to its neighbors.

This plot supportsSOMnetworks withhextopandgridtoptopologies, but nottritoporrandtop.

Examples

Plot SOM Neighbor Distances

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

Figure SOM Neighbor Distances (plotsomnd) contains an axes object. The axes object with title SOM Neighbor Weight Distances contains 137 objects of type patch, line.

Introduced in R2008a