Neural Network Toolbox
  Go to function:
    Search    Help Desk 
adaptwb    See Also

By-weight-and-bias network adaption function

Syntax

[net,Ac,El] = adaptwb(net,Pd,Tl,Ai,Q,TS)

info = adaptwb(code)

Description

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:

Dimensions for these variables are:

where

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

Network Use

You can create a standard network that uses adaptwb by calling newp or newlin.

To prepare a custom network to adapt with adaptwb:

   1.
Set net.adaptfcn to 'adaptwb'. (This will set net.adaptparam to adaptwb's default parameters.)
   2.
Set each 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.)
To allow the network to adapt:

   1.
Set net.adaptparam properties to desired values.
   2.
Set weight and bias learning parameters to desired values.
   3.
Call adapt.
See newp and newlin for adaption examples.

Algorithm

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

See Also

newp, newlin, train



[ Previous | Help Desk | Next ]