initlay
Layer-by-layer network initialization function
Syntax
net = initlay(net)
info = initlay('code
')
Description
initlay
is a network initialization function that initializes each layeri
according to its own initialization functionnet.layers{i}.initFcn
.
net = initlay(net)
takes
net |
Neural network |
and returns the network with each layer updated.
info = initlay('
returns useful information for each supportedcode
')code
character vector:
'pnames' |
Names of initialization parameters |
'pdefaults' |
Default initialization parameters |
initlay
does not have any initialization parameters.
Network Use
You can create a standard network that usesinitlay
by callingfeedforwardnet
,cascadeforwardnet
, and many other network functions.
To prepare a custom network to be initialized withinitlay
,
Set
net.initFcn
to'initlay'
. This setsnet.initParam
to the empty matrix[]
, becauseinitlay
has no initialization parameters.Set each
net.layers{i}.initFcn
to a layer initialization function. (Examples of such functions areinitwb
andinitnw
.)
To initialize the network, callinit
.
Algorithms
The weights and biases of each layeri
are initialized according tonet.layers{i}.initFcn
.