| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Create trainable cascade-forward backpropagation network
newcf(P,T,[S1 S2...S(N-l)],{TF1 TF2...TFN},BTF,BLF,PF,IPF,OPF,DDF) takes
and returns an N-layer cascade-forward backpropagation network.
The transfer function TFi can be any differentiable transfer function such as tansig, logsig, or purelin.
The training function BTF can be any of the backpropagation training functions such as trainlm, trainbfg, trainrp, traingd, etc.
| Caution trainlm is the default training function because it is very fast, but it requires a lot of memory to run. If you get an out-of-memory error when training, try one of these: |
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 problem consisting of inputs P and targets T to be solved with a network.
A two-layer cascade-forward network is created with one hidden layer of five neurons.
The network is simulated and its output plotted against the targets.
The network is trained for 50 epochs. Again the network's output is plotted.
Cascade-forward networks consist of Nl layers using the dotprod weight function, netsum net input function, and the specified transfer function.
The first layer has weights coming from the input. Each subsequent layer has weights coming from the input and all previous layers. 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, newelm, sim, init, adapt, train, trains
| Provide feedback about this page |
![]() | newc | newdtdnn | ![]() |

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 |