| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Sequential order incremental training with learning functions
trains is not called directly. Instead it is called by train for networks whose net.trainFcn property is set to 'trains'.
trains trains a network with weight and bias learning rules with sequential updates. The sequence of inputs is presented to the network with updates occurring after each time step.
This incremental training algorithm is commonly used for adaptive applications.
| net |
Neural network |
| Pd |
Delayed inputs |
| Tl |
Layer targets |
| Ai |
Initial input conditions |
| Q |
Batch size |
| TS |
Time steps |
and after training the network with its weight and bias learning functions returns
| net |
Updated network | |
| TR |
Training record: | |
| TR.timesteps |
Number of time steps |
|
| TR.perf |
Performance for each time step |
|
| Ac |
Collective layer outputs | |
| El |
Layer errors | |
Training occurs according to trains's training parameter, shown here with its default value:
| net.trainParam.passes |
1 |
Number of times to present sequence |
Dimensions for these variables are
| Ni |
= |
net.numInputs |
|
| Nl |
= |
net.numLayers |
|
| LD |
= |
net.numLayerDelays |
|
| Ri |
= |
net.inputs{i}.size |
|
| Si |
= |
net.layers{i}.size |
|
| Ui |
= |
net.outputs{i}.size |
|
| Dij |
= |
Ri * length(net.inputWeights{i,j}.delays) |
trains(code) returns useful information for each code string:
| 'pnames' |
Names of training parameters |
| 'pdefaults' |
Default training parameters |
You can create a standard network that uses trains for adapting by calling newp or newlin.
To prepare a custom network to adapt with trains,
To allow the network to adapt,
See newp and newlin for adaption examples.
Each weight and bias is updated according to its learning function after each time step in the input sequence.
newp, newlin, train, trainb, trainc, trainr
| Provide feedback about this page |
![]() | trainrp | trainscg | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |