Neural Network Toolbox Previous page   Next Page
newc

Create a competitive layer

Syntax

net = newc

net = newc(PR,S,KLR,CLR)

Description

Competitive layers are used to solve classification problems.

net = newc creates a new network with a dialog box.

net = newc(PR,S,KLR,CLR) takes these inputs,

and returns a new competitive layer.

Properties

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.

Examples

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.

See Also

sim, init, adapt, train, trains, trainr, newcf


Previous page  network newcf Next page

© 1994-2005 The MathWorks, Inc.