A tokenizer with a vocabulary of has handed out these IDs:
| token | ID |
|---|---|
| cat | 412 |
| car | 411 |
| dog | 87 |
Each token is then one-hot encoded: a vector of length that is everywhere except for a single at the position given by its ID. Call these vectors , and .
The straight-line (Euclidean) distance between two vectors is
What are the two distances and ?
One-hot encoding: a list as long as the vocabulary, with a single 1 in this word's slot. Exactly the one-hot targets you met with cross-entropy.
Once you get it right, the reasoning behind the answer shows up here.
Select all that apply.