initzero
(To be removed) Zero weight and bias initialization function
initzero 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
W = initzero(S,PR)
b = initzero(S,[1 1])
Description
W = initzero(S,PR) takes two arguments,
S | Number of rows (neurons) |
PR |
|
and returns an S-by-R weight matrix of
zeros.
b = initzero(S,[1 1]) returns an
S-by-1 bias vector of zeros.
Examples
Here initial weights and biases are calculated for a layer with two inputs ranging
over [0 1] and [-2 2] and four neurons.
W = initzero(5,[0 1; -2 2]) b = initzero(5,[1 1])
Version History
Introduced before R2006aSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork