| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Create layered-recurrent network
net = newlrn(P,T,[S1 S2...S(N-l)],{TF1 TF2...TFNl}, BTF,BLF,PF,IPF,OPF,DDF) takes several arguments,
and returns a layered-recurrent network.
The training function BTF can be any of the backpropagation training functions such as trainlm, trainbfg, trainscg, trainbr, etc.
The learning function BLF can be either of the backpropagation learning functions learngd or learngdm.
The performance function can be any of the differentiable performance functions such as mse or msereg.
Here is a series of Boolean inputs P and another sequence T that is 1 whenever P has two 1s in a row.
You want the network to recognize whenever two 1s occur in a row. First arrange these values as sequences.
Next create a layered-recurrent network with one hidden layer of ten neurons.
Then train the network with a mean squared error goal of 0.1 and simulate it.
Layered-recurrent networks consists of Nl layers using the dotprod weight function, netsum net input function, and the specified transfer functions.
The first layer has weights coming from the input. Each subsequent layer has a weight coming from the previous layer. All layers except the last have a recurrent weight. All layers have biases. The last layer is the network output.
Each layer's weights and biases are initialized with initnw.
Adaption is done with trains, which updates weights with the specified learning function. Training is done with the specified training function. Performance is measured according to the specified performance function.
newff, newcf, sim, init, adapt, train, trains
| Provide feedback about this page |
![]() | newlind | newlvq | ![]() |

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 |