liveBook · Manning

Timestep

As explained in Inside Deep Learning: Math, Algorithms, Models

A discrete position in a sequence or recurrent computation at which the model updates state.

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

How Inside Deep Learning: Math, Algorithms, Models covers it

How deep it goes
Defines timestep notation through recurrent state updates and the sequence tensor shape (B, T, D).
Examples
Uses daily temperature vectors and a loop that updates the carried summary at each position.
What you can do after
Understand how an RNN processes a sequence one position at a time while carrying forward a hidden-state summary.
How it connects
Connects sequence inputs to recurrent hidden states, with each update carrying information from earlier timesteps.

Also explained in

Compare how 5 books explain timestep →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Inside Deep Learning: Math, Algorithms, Models. The section links point to the parts of the book it draws on.