Neural Network Toolbox | Search  Help Desk |
initlay | See Also |
Layer-by-layer network initialization function
net = initlay(net)
info = initlay(code)
initlay
is a network initialization function which initializes each layer i
according to its own initialization function net.layers{i}.initFcn
.
initlay
(net
) takes,
net -
Neural network.
initlay(code)
returns useful information for each code
string:
initlay
does not have any initialization parameters.
You can create a standard network that uses initlay
by calling newp, newlin, newff, newcf
, and many other new
network functions.
To prepare a custom network to be initialized with initlay
:
.net
.initFcn
to 'initlay
'. (This will set net.initParam
to the empty
matrix [ ] since initlay
has no initialization parameters.)
.net
.layers{i}.initFcn
to a layer initialization function.
(Examples of such functions are initwb
and initnw
).
init
. See newp
and newlin
for initialization examples.
The weights and biases of each layer i
are initialized according to net
.layers{i}.initFcn
.
initwb
,
initnw
,
init