midpoint
(To be removed) Midpoint weight initialization function
midpoint 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 = midpoint(S,PR)
Description
midpoint is a weight initialization function that sets weight (row)
vectors to the center of the input ranges.
W = midpoint(S,PR) takes two arguments,
S | Number of rows (neurons) |
PR |
|
and returns an S-by-R matrix with rows set to
(Pmin+Pmax)'/2.
Examples
Here initial weight values are calculated for a five-neuron layer with input elements
ranging over [0 1] and [-2 2].
W = midpoint(5,[0 1; -2 2])
Version History
Introduced before R2006aSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork