Deep Learning · Sequence models: the vanilla (Elman) RNN · Recurrent Neural Networks (RNN) · The whole process

From sequence to next-digit guess,
A to Z

How one small cell, reused at every time step, gives a neural network memory, and why that memory fades. Twenty-six steps follow one sequence of 50 digits. A to T take it through the RNN to a prediction at every time step. U to Y show how its 830 weights were learned. Z is what it costs to run and how to reuse it.

Click any letter, press ▶, or use the arrow keys.

01

The whole process on one sheet

The 50-digit sequence enters on the left and a guess for the next digit leaves on the right, once per time step. The recurrent core in the middle is a single cell that is reused at every step. The dashed red loop underneath is training. Click any lettered dot to jump to that step.
Vanilla RNN · forward pass above, training below100%
02

Step by step

Letters fill in as you pass them. The panel on the right shows what goes in and what comes out, the tensor shape, and running totals of weights and multiply-adds per time step, computed from the same layer spec as the Blueprint page (d = 10, h = 20, k = 10, T = 50).
A
step 1 of 26
input100%
← → keys · any letter key jumps · F = full screen
t = 1time steps processed so far (bar height = digit)t = 50

tensor at this point
weights so far
0
multiply-adds / step
0
03

All 26 steps in one table

A printable summary: what goes into each step, what comes out, and the one figure to remember. Click a row to open that step.
letterstepinputoutputkey figure

Same numbers as the Blueprint: (50, 10) → (50, 20) → (50, 10). Recurrent core h·d + h² + h = 620, read-out 210, total 830 weights; 800 multiply-adds per step, 40,000 per sequence.

04

Check yourself

Six questions, one per learning outcome. Pick an answer to see whether it is right and why. Every number can be found in the steps above.
0 / 0 correct
05

Glossary

The terms used on this page. The same definitions open from every red ? badge in the steps.