| Neural Network Toolbox | Search  Help Desk |
| adaptwb | See Also |
By-weight-and-bias network adaption function
[net,Ac,El] = adaptwb(net,Pd,Tl,Ai,Q,TS)
info = adaptwb(code)
adaptwb is a network function which updates each weight and bias according to its learning function.
adaptwb takes these inputs,
After training the network with its weight and bias the learning functions returns,
Adaption occurs according to the adaptwb's training parameter, shown here with its default value:
net.adaptparam.passes 1 Number of passes through sequence
Pd - No x Ni x TS cell array, each element P{i,j,ts} is a Zij x Q matrix.
Tl - Nl x TS cell array, each element P{i,ts} is a Vi x Q matrix or [].
Ai - Nl x LD cell array, each element Ai{i,k} is an Si x Q matrix.
Ac - Nl x (LD+TS) cell array, each element Ac{i,k} is an Si x Q matrix.
El - Nl x TS cell array, each element El{i,k} is an Si x Q matrix or [].
Zij = Ri * length(net.inputWeights{i,j}.delays)
adaptwb(code) returns useful information for each code string:
You can create a standard network that uses adaptwb by calling newp or newlin.
To prepare a custom network to adapt with adaptwb:
.net.adaptfcn to 'adaptwb'. (This will set net.adaptparam to adaptwb'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 will automatically be set to default values for the given learning
function.)
.net.adaptparam properties to desired values.
..adapt.
newp and newlin for adaption examples.
Each weight and bias is updated according to its learning function after each step in the input sequence.
newp, newlin, train