Neural Network Toolbox Previous page   Next Page
trainc

Cyclical order incremental training with learning functions

Syntax

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

info = trainc(code)

Description

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

trainc trains a network with weight and bias learning rules with incremental updates after each presentation of an input. Inputs are presented in cyclic order.

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

and returns,

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

Dimensions for these variables are:

where

trainc does not implement validation or test vectors, so arguments VV and TV are ignored.

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

Network Use

You can create a standard network that uses trainc by calling newp.

To prepare a custom network to be trained with trainc

  1. Set net.trainFcn to 'trainc'.
  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 train the network

  1. Set net.trainParam properties to desired values.
  2. Set weight and bias learning parameters to desired values.
  3. Call train.

See newp for training examples.

Algorithm

For each epoch, each vector (or sequence) is presented in order to the network with the weight and bias values updated accordingly after each individual presentation.

Training stops when any of these conditions are met:

See Also

newp, newlin, train


Previous page  trainbr traincgb Next page

© 1994-2005 The MathWorks, Inc.