Neural Network Toolbox Previous page   Next Page
trains

Sequential order incremental training w/learning functions

Syntax

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

info = trains(code)

Description

trains is not called directly. Instead it is called by train for networks whose net.trainFcn property is set to 'trains'.

trains trains a network with weight and bias learning rules with sequential updates. The sequence of inputs is presented to the network with updates occurring after each time step.

This incremental training algorithm is commonly used for adaptive applications.

trains takes these inputs:

and after training the network with its weight and bias learning functions returns:

Training occurs according to trains's training parameter shown here with its default value:

Dimensions for these variables are

where

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

Network Use

You can create a standard network that uses trains for adapting by calling newp or newlin.

To prepare a custom network to adapt with trains

  1. Set net.adaptFcn to 'trains'.
  2. Set each net.inputWeights{i,j}.learnFcn to a learning function.
  3. Set each net.layerWeights{i,j}.learnFcn to a learning function.
  4. Set each net.biases{i}.learnFcn to a learning function. (Weight and bias learning parameters will automatically be set to default values for the given learning function.)

To allow the network to adapt

  1. Set weight and bias learning parameters to desired values.
  2. Call adapt.

See newp and newlin for adaption examples.

Algorithm

Each weight and bias is updated according to its learning function after each time step in the input sequence.

See Also

newp, newlin, train, trainb, trainc, trainr


Previous page  trainrp trainscg Next page

© 1994-2005 The MathWorks, Inc.