2 ms·
That's one way to think about it. It's clever way to encode "position in sequence" as some kind of smooth signal that can be added to each input vector. You mi
by nerdponx 3y ago
That's one way to think about it.
It's clever way to encode "position in sequence" as some kind of smooth signal that can be added to each input vector. You might appreciate this detailed explanation: https://towardsdatascience.com/master-positional-encoding-part-i-63c05d90a0c3 https://towardsdatascience.com/master-positional-encoding-pa...
Incidentally, you can encode dates (e.g. day of week) in a model as sin(day of week) and cos(day of week) to ensure that "day 7" is mathematically adjacent to "day 1".
- deleted 3y ago[deleted]