initlay
(To be removed) Layer-by-layer network initialization function
initlay will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
Syntax
net = initlay(net)
info = initlay('code')
Description
initlay is a network initialization function that initializes each
layer i according to its own initialization function
net.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 supported code')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 uses initlay by calling
feedforwardnet, cascadeforwardnet, and many
other network functions.
To prepare a custom network to be initialized with initlay,
Set
net.initFcnto'initlay'. This setsnet.initParamto the empty matrix[], becauseinitlayhas no initialization parameters.Set each
net.layers{i}.initFcnto a layer initialization function. (Examples of such functions areinitwbandinitnw.)
To initialize the network, call init.
Algorithms
The weights and biases of each layer i are initialized according to
net.layers{i}.initFcn.
Version History
Introduced before R2006aSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork