| Neural Network Toolbox | |
| Provide feedback about this page |
Create pattern recognition network
Syntax
Description
newfit(P,T,S,TF,BTF,BLF,PF,IPF,OPF,DDF) takes the following:
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:
trainlm training, but reduce memory requirements, by setting NET.trainParam.mem_reduc to 2 or more. (See HELP TRAINLM.)
trainbfg, which is slower but more memory efficient than trainlm.
trainrp, which is slower but more memory efficient than trainbfg.
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.
Examples
load simpleclass_dataset net = newpr(simpleclassInputs,simpleclassTargets,20); net = train(net,simpleclassInputs,simpleclassTargets); simpleclassOutputs = sim(net,simpleclassInputs);
Algorithm
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.
See Also
newff, newcf, newelm, sim, init, adapt, train, trains
| Provide feedback about this page |
![]() | newpnn | newrb | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |