Neural Network Toolbox Previous page   Next Page
newpnn

Design a probabilistic neural network

Syntax

net = newpnn

net = newpnn(P,T,spread)

Description

Probabilistic neural networks (PNN) are a kind of radial basis network suitable for classification problems.

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

net = newpnn(P,T,spread)takes two or three arguments,

and returns a new probabilistic neural network.

If spread is near zero, the network will act as a nearest neighbor classifier. As spread becomes larger, the designed network will take into account several nearby design vectors.

Examples

Here a classification problem is defined with a set of inputs P and class indices Tc.

Here the class indices are converted to target vectors, and a PNN is designed and tested.

Algorithm

newpnn creates a two-layer network. The first layer has radbas neurons, and calculates its weighted inputs with dist, and its net input with netprod. The second layer has compet neurons, and calculates its weighted input with dotprod and its net inputs with netsum. Only the first layer has biases.

newpnn sets the first layer weights to P', and the first layer biases are all set to 0.8326/spread, resulting in radial basis functions that cross 0.5 at weighted inputs of +/- spread. The second layer weights W2 are set to T.

See Also

sim, ind2vec, vec2ind, newrb, newrbe, newgrnn

References

Wasserman, P.D., Advanced Methods in Neural Computing, New York: Van Nostrand Reinhold, pp. 35-55, 1993.


Previous page  newp newrb Next page

© 1994-2005 The MathWorks, Inc.