Neural Network Toolbox Previous page   Next Page

Network Initialization

This problem requires that the Elman network detect a single value (the signal), and output a single value (the amplitude), at each time step. Therefore the network must have one input element, and one output neuron.

The recurrent layer can have any number of neurons. However, as the complexity of the problem grows, more neurons are needed in the recurrent layer for the network to do a good job.

This problem is fairly simple, so only 10 recurrent neurons are used in the first layer.

Now the function newelm can be used to create initial weight matrices and bias vectors for a network with one input that can vary between -2 and +2. We use variable learning rate (traingdx) for this example.


Previous page  Problem Definition Network Training Next page

© 1994-2005 The MathWorks, Inc.