Splashery

Playground
Recurrent Network, a still.

AI and Computing · Built from a recipe

Recurrent Network

C4 on the minor comb. Its drum rings at 279.9 Hz.

Turn it in the PlaygroundTap the picture to strike it.

A recurrent network, or RNN, reads a sequence, like the words of a sentence, one piece at a time.

Shelf
AI and Computing
Kind
Built from a recipe
Sound
Yes
Licenses
Own work (made in the page)

Its note

Splashery stretches a drumhead over this Splash's outline, twelve inches across, and finds the ways it can ring. Its lowest is 279.9 Hz, 117 cents sharp of C4, the nearest tine on the comb. The next fifteen are its overtones, and each one draws its own figure: sand gathers on the lines that stay still.

The sixteen ways Recurrent Network's drum can ring, lowest first.
  1. 1280 Hz
  2. 2415 Hz
  3. 3468 Hz
  4. 4559 Hz
  5. 5573 Hz
  6. 6673 Hz
  7. 7685 Hz
  8. 8738 Hz
  9. 9741 Hz
  10. 10827 Hz
  11. 11839 Hz
  12. 12882 Hz
  13. 13909 Hz
  14. 14938 Hz
  15. 15959 Hz
  16. 16982 Hz

How to play

Tap it to read a sentence one word at a time. Try the LSTM style in the Splash tab.

Its controls

ControlKindRangeStart
Read a sentenceTap
ReadButton
StyleList2 choicesSimple
ViewList2 choicesPoster (2D)

About it

A recurrent network, or RNN, reads a sequence, like the words of a sentence, one piece at a time. It keeps a memory called the hidden state: after each word, the state loops back in with the next word, so what it knows builds up as it reads. An LSTM (long short-term memory) adds gates that decide what to forget, what to take in and what to pass on.

Tap it: THE, CAT and SAT rise into the cell one at a time. The cell flashes, and the glowing orb, the hidden state, takes on the word's color mixed with what it carried and runs around the loop. In the Splash tab, pick the LSTM style to see its three gates open and shut like shutters, or a 3D model. This is a scripted sequence, not a trained sentence reader.

Details

Splats
Opens at 200,000 at Mid Detail, 59,999 at Low, and up to 780,000 at Max

Is it right?

The diagram shows the idea of passing a hidden state through a sequence. Its colors and LSTM shutters are scripted, and it has no learned recurrent weights or numerical cell state.

  1. Simplified

    An RNN carries a hidden state from one sequence item to the next.1

    The diagram loops an orb between THE, CAT, and SAT, matching the flow of a recurrent state.

  2. Correct

    An LSTM uses forget, input, and output gates.2

    The three shutter labels are F, I, and O, matching those gate roles.

  3. Simplified

    The splash illustrates gate operation without reading a sentence.12

    The colors and shutters are stored animation values. The About text explicitly calls this a scripted sequence.

  1. 1Recurrent neural networks, Dive into Deep Learning authors
  2. 2Long short-term memory, Dive into Deep Learning authors
Simplified
THE CAT SAT, the orb colors, and the gate openings repeat a stored sequence. The LSTM view has no numerical cell-state update or sigmoid gate values.

Sources and credits

Made in Splashery. Its code is MIT.

Share it

This link opens it in the Playground. To put it on your own page, add the element and one script tag. Every option.

https://splashery.app/play/?toy=rnn<script type="module" src="https://splashery.app/play/src/element.js"></script> <splashery-toy toy="rnn"></splashery-toy>

Nearby on the strip