Codele / Machine learning: one neuron to deep learning
Attention
To work out what one word means, look at all the other words and decide how much each one matters. That weighing is called attention.
- Attention lets a word look at all the other words and decide how much each one matters.
- Each word gets a score. Dividing each score by the total turns the scores into shares that add up to 100 percent.
- The same word can mean different things: its meaning is mixed from the words around it.
- The scores here were made up. A real network learns how to score. It turns scores into shares with a fancier version of this division, called softmax.
Loading the playable lesson…