A network passes numbers from layer to layer. Each unit takes all the numbers coming in (here 100 of them), multiplies each one by its own random weight, and adds them up. Start those weights at about 1 and adding 100 numbers makes them about 10× bigger at every layer: after 20 layers they are 10²⁰ times too big (watch it below). Write weight_size: how big the random starting weights should be, one number like 0.5 or 0.01. The goal is ×1: every layer should hand on numbers the same size it got, so after 20 layers they are still about the size they went in (anywhere from ×0.5 to ×2 passes).
One neuron with weights of about 1. It multiplies each of its 100 inputs by its weight and adds up the results.
weight_size(inputs_per_unit, relu)| inputs_per_unit | how many inputs each unit adds up | e.g. 1 |
| relu | True when a ReLU follows every layer | e.g. False |
| returns | how big the random starting weights should be, e.g. 0.5 | |