init
Initialize neural network
Syntax
Description
returns a neural networkinit_net
= init (net
)net
with weight and bias values updated according to the network initialization function, specified bynet.initFcn
, and the parameter values, specified bynet.initParam
.
For more information on this function, at the MATLAB command prompt, typehelp network/init
.
Examples
Input Arguments
Output Arguments
Algorithms
init
callsnet.initFcn
to initialize the weight and bias values according to the parameter valuesnet.initParam
.
Typically,net.initFcn
is set to'initlay'
, which initializes each layer’s weights and biases according to itsnet.layers{i}.initFcn
.
Backpropagation networks havenet.layers{i}.initFcn
set to'initnw'
, which calculates the weight and bias values for layeri
using the Nguyen-Widrow initialization method.
Other networks havenet.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 isrands
, which generates random values between –1 and 1.