A timestep is one indexed position in an ordered sequence. At timestep t, an RNN combines the current input xₜ with the summary of earlier inputs hₜ₋₁ to produce an updated summary hₜ. For a sequence of length T, the model processes positions 1 through T. section 4.1.2
Daily weather sequence
A day's input could be a vector of high, low, and average temperatures. Each day is one timestep, and the RNN carries its summary forward as it processes the days in order. section 4.1.2
history_summary = 0 #1
inputs = [...] #2
for t in range(T):
new_summary = RNN(history_summary, inputs[t]) #3
history_summary = new_summary
The loop makes the timestep update concrete: process inputs[t], then carry the new summary into the next iteration. section 4.1.2




