Codele / Machine learning: one neuron to deep learning
Networks for sequences
For text or sound, order matters. A recurrent network reads one item at a time and keeps a small memory, but its memory of early items fades.
- A recurrent network reads a sequence one item at a time, in order.
- It keeps a small memory and updates it at every step with the same rule.
- In our toy rule, new memory = half of the old memory plus the new item.
- Because the old memory is shrunk every step, early items fade. Long sequences lose their beginnings.
- Letting each step look back at every item directly is attention, the next lesson.
Loading the playable lesson…