| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Competitive layers are used to solve classification problems.
net = newsom(P,[D1,D2,...],TFCN,DFCN,STEPS,IN) takes
and returns a new self-organizing map.
The topology function TFCN can be hextop, gridtop, or randtop. The distance function can be linkdist, dist, or mandist.
Self-organizing maps (SOM) consist of a single layer with the negdist weight function, netsum net input function, and the compet transfer function.
The layer has a weight from the input, but no bias. The weight is initialized with midpoint.
Adaption and training are done with trains and trainr, which both update the weight with learnsom.
The input vectors defined below are distributed over a two-dimensional input space varying over [0 2] and [0 1]. This data is used to train an SOM with dimensions [3 5].
load simpleclass_dataset net = newsom(simpleclassInputs,[8 8]); plotsom(net.layers{1}.positions) net = train(net,simpleclassInputs);plot(simpleclassInputs(1,:),simpleclassInputs(2,:), ... '.g','markersize',20) hold on plotsom(net.iw{1,1},net.layers{1}.distances) hold off
sim, init, adapt, train, trains, trainr
| Provide feedback about this page |
![]() | newrbe | nftool | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |