| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
init(net) returns neural network net with weight and bias values updated according to the network initialization function, indicated by net.initFcn, and the parameter values, indicated by net.initParam.
Here a perceptron is created with a two-element input (with ranges of 0 to 1 and -2 to 2) and one neuron. Once it is created you can display the neuron's weights and bias.
Training the perceptron alters its weight and bias values.
init reinitializes those weight and bias values.
The weights and biases are zeros again, which are the initial values used by perceptron networks (see newp).
init calls net.initFcn to initialize the weight and bias values according to the parameter values net.initParam.
Typically, net.initFcn is set to 'initlay', which initializes each layer's weights and biases according to its net.layers{i}.initFcn.
Backpropagation networks have net.layers{i}.initFcn set to 'initnw', which calculates the weight and bias values for layer i using the Nguyen-Widrow initialization method.
Other networks have net.layers{i}.initFcn set to 'initwb', which initializes each weight and bias with its own initialization function. The most common weight and bias initialization function is rands, which generates random values between -1 and 1.
sim, adapt, train, initlay, initnw, initwb, rands, revert
| Provide feedback about this page |
![]() | ind2vec | initcon | ![]() |

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 |