Part 09 / Topic 6 of 6
Weight initialisation
Why rng.normal(...) and not zeros? Because with all weights zero, every hidden neuron computes the same thing, receives the same gradient, and stays identical forever — the network cannot break symmetry. Measured on the XOR network:
random init: [0. 1. 1. 0.] learns XOR
zeros init : [0.5 0.5 0.5 0.5] stuck at "no idea", permanently
Random initialisation gives each neuron a different starting job. Scale matters too — too large saturates sigmoids/tanh (tiny gradients), too small makes signals fade through depth. Frameworks default to schemes (Kaiming, Xavier) that balance this per layer size; Part 10 inherits them for free.
Done here? The practice set for Part 9 — 4 exercises with solutions — is on the part page.