>> help trainlm
TRAINLM Levenberg-Marquardt
backpropagation.
Syntax
[net,tr] = trainlm(net,tr,trainV,valV,testV)
info = trainlm('info')
Description
TRAINLM is a network training function that updates weight
and
bias states according to Levenberg-Marquardt optimization.
TRAINLM is often the fastest backpropagation algorithm in the
toolbox,
and is highly recommended as a first choice supervised
algorithm,
although it does require more memory than other algorithms.
TRAINLM(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.
and returns,
NET - Trained network.
TR - Training record of various values over each
epoch.
Each argument TRAINV, VALV and TESTV is a structure of these
fields:
X - NxTS cell array of inputs for N inputs and TS
timesteps.
X{i,ts} is an RixQ matrix for ith input and ts timestep.
Xi - NxNid cell array of input delay states for N inputs and Nid
delays.
Xi{i,j} is an RixQ matrix for ith input and jth state.
Pd - NxSxNid cell array of delayed input states.
T - NoxTS cell array of targets for No outputs
and TS timesteps.
T{i,ts} is an SixQ matrix for the ith output and ts timestep.
Tl - NlxTS cell array of targets for Nl layers and TS
timesteps.
Tl{i,ts} is an SixQ matrix for the ith layer and ts timestep.
Ai - NlxTS cell array of layer delays states for Nl layers, TS
timesteps.
Ai{i,j} is an SixQ matrix of delayed outputs for layer i, delay
j.
Training occurs according to training parameters, with default
values:
net.trainParam.show
25 Epochs between displays
net.trainParam.showCommandLine 0 generate command line output
net.trainParam.showWindow 1
show training GUI
net.trainParam.epochs
100 Maximum number of epochs to train
net.trainParam.goal