init
Initialize neural network
Syntax
Description
returns a neural network init_net
= init(net
)net
with weight and bias values updated
according to the network initialization function, specified by
net.initFcn
, and the parameter values, specified by
net.initParam
.
For more information on this function, at the MATLAB command prompt, type help
network/init
.
Examples
Input Arguments
Output Arguments
Algorithms
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.
Version History
Introduced before R2006a