| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Create pattern recognition network
newpr(P,T,S,TF,BTF,BLF,PF,IPF,OPF,DDF) takes the following arguments:
It returns an N-layer feed-forward backpropagation network.
The transfer functions TF{i} 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.
Memory Requirements
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 doing one of these approaches: The learning function BLF can be either of the backpropagation learning functions such as learngd or learngdm. The performance function can be any of the differentiable performance functions such as mse or msereg. newpr returns a network exactly as newff does, but with an output layer transfer function of 'tansig' and additional plotting functions included in the network's net.plotFcn property. newff, newcf, newelm, sim, init, adapt, train, trains
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Examples
load simpleclass_dataset
net = newpr(simpleclassInputs,simpleclassTargets,20);
net = train(net,simpleclassInputs,simpleclassTargets);
simpleclassOutputs = sim(net,simpleclassInputs);
Algorithm
See Also
Provide feedback about this page

newpnn newrb 

Recommended Products
© 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS