| Neural Network Toolbox | |
| Provide feedback about this page |
Cyclical order weight/bias training
Syntax
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,TR,trainV,valV,testV) takes these inputs,
net |
Neural network |
TR |
Initial training record created by train |
trainV |
Training data created by train |
valV |
Validation data created by train |
testV |
Test data created by train |
net |
Trained network |
TR |
Training record of various values over each epoch: |
Each argument trainV, valV and testV is a structure of these fields:
Training occurs according to trainc's training parameters, shown here with their default values:
trainc('info') returns useful information about this function.
Network Use
You can create a standard network that uses trainc by calling newp. To prepare a custom network to be trained with trainc,
net.trainFcn to 'trainc'. This sets net.trainParam to trainc's default parameters.
net.inputWeights{i,j}.learnFcn to a learning function. Set each net.layerWeights{i,j}.learnFcn to a learning function. Set each net.biases{i}.learnFcn to a learning function. (Weight and bias learning parameters are automatically set to default values for the given learning function.)
net.trainParam properties to desired values.
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 is met:
epochs (repetitions) is reached.
goal.
time is exceeded.
See Also
| Provide feedback about this page |
![]() | trainbuwb | traincgb | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |