Neural Network Toolbox
  Go to function:
    Search    Help Desk 
traingdm    See Also

Gradient descent w/momentum backpropagation

Syntax

[net,tr] = traingdm(net,Pd,Tl,Ai,Q,TS,VV)

info = traingdm(code)

Description

traingdm is a network training function that updates weight and bias values according to gradient descent with adaptive learning rate.

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

and returns,

TR.lr - adaptive learning rate. Training occurs according to the traingdm'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.

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

Network Use

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

To prepare a custom network to be trained with traingdm:

   1.
Set net.trainFcn to 'traingdm'. This will set net.trainParam to traingdm'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 traingdm.

See newff, newcf, and newelm for examples.

Algorithm

traingdm 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 gradient descent with momentum,

where dXprev is the previous change to the weight or bias.

Training stops when any of these conditions occur:

   1.
The maximum number of epochs (repetitions) is reached.
   2.
The maximum amount of time has been exceeded.
   3.
Performance has been minimized to the goal.
   4.
The performance gradient falls below mingrad.
   5.
Validation performance has increase more than max_fail times since the last time it decreased (when using validation).

See Also

newff, newcf, traingd, traingda, traingdx, trainlm



[ Previous | Help Desk | Next ]