Module 2 — The recurrent neuron and its hidden state
Module 1 established the problem: a table of features throws away order, and adding lagged columns only works when the useful past is fixed. The recurrent neuron is the smallest object that carries information across time steps without a fixed horizon. This module unpacks its equation, watches it unroll over the electricity series, and pins down the tensor shapes that decide whether a layer runs or throws.
One equation, three ingredients
A recurrent neuron reads one input at each time step and updates a hidden state using the previous hidden state