initzero

Zero weight and bias initialization function

Syntax

W = initzero(S,PR)
b = initzero(S,[1 1])

Description

W = initzero(S,PR) takes two arguments,

S

Number of rows (neurons)

PR

R-by-2 matrix of input value ranges = [Pmin Pmax]

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])

See Also

| |

Introduced before R2006a