Neural Network Toolbox Previous page   Next Page
trainrp

Resilient backpropagation

Syntax

[net,TR,Ac,El] = trainrp(net,Pd,Tl,Ai,Q,TS,VV,TV)

info = trainrp(code)

Description

trainrp is a network training function that updates weight and bias values according to the resilient backpropagation algorithm (RPROP).

trainrp(net,Pd,Tl,Ai,Q,TS,VV,TV) takes these inputs,

and returns,

Training occurs according to the trainrp's training parameters shown here with their default values:

Dimensions for these variables are

where

If VV is not [], it must be a structure of validation vectors,

which is used to stop training early if the network performance on the validation vectors fails to improve or remains the same for max_fail epochs in a row.

If TV is not [], it must be a structure of validation vectors,

which is used to test the generalization capability of the trained network.

trainrp(code) returns useful information for each code string:

Examples

Here is a problem consisting of inputs p and targets t that we would like to solve with a network.

Here a two-layer feed-forward network is created. The network's input ranges from [0 to 10]. The first layer has two tansig neurons, and the second layer has one logsig neuron. The trainrp network training function is to be used.

Create and Test a Network

See newff, newcf, and newelm for other examples.

Network Use

You can create a standard network that uses trainrp with newff, newcf, or newelm.

To prepare a custom network to be trained with trainrp

  1. Set net.trainFcn to 'trainrp'. This will set net.trainParam to trainrp's default parameters.
  2. Set net.trainParam properties to desired values.

In either case, calling train with the resulting network will train the network with trainrp.

Algorithm

trainrp can train any network as long as its weight, net input, and transfer functions have derivative functions.

Backpropagation is used to calculate derivatives of performance perf with respect to the weight and bias variables X. Each variable is adjusted according to the following:

where the elements of deltaX are all initialized to delta0 and gX is the gradient. At each iteration the elements of deltaX are modified. If an element of gX changes sign from one iteration to the next, then the corresponding element of deltaX is decreased by delta_dec. If an element of gX maintains the same sign from one iteration to the next, then the corresponding element of deltaX is increased by delta_inc. See Reidmiller and Braun, Proceedings of the IEEE International Conference on Neural Networks.

Training stops when any of these conditions occur:

See Also

newff, newcf, traingdm, traingda, traingdx, trainlm, traincgp, traincgf, traincgb, trainscg, trainoss, trainbfg

References

Riedmiller, M., and H. Braun, "A direct adaptive method for faster backpropagation learning: The RPROP algorithm," Proceedings of the IEEE International Conference on Neural Networks, San Francisco,1993.


Previous page  trainr trains Next page

© 1994-2005 The MathWorks, Inc.