| Products & Services | Solutions | 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 = newc(PR,S,KLR,CLR) takes these inputs,
| PR |
R x 2 matrix of min and max values for R input elements |
| S |
Number of neurons |
| KLR |
Kohonen learning rate (default = 0.01) |
| CLR |
Conscience learning rate (default = 0.001) |
and returns a new competitive layer.
Competitive layers 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, and a bias.
Weights and biases are initialized with midpoint and initcon.
Adaption and training are done with trains and trainr, which both update weight and bias values with the learnk and learncon learning functions.
Here is a set of four two-element vectors P.
A competitive layer can be used to divide these inputs into two classes. First a two-neuron layer is created with two input elements ranging from 0 to 1, then it is trained.
The resulting network can then be simulated and its output vectors converted to class indices.
sim, init, adapt, train, trains, trainr, newcf
| Provide feedback about this page |
![]() | network | newcf | ![]() |

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 |