Labs · Vectors

Dot product against cosine

The same vectors under both measures, whose neighbour changes, and anisotropy — a shared offset that makes every cosine high until the mean is subtracted.

cos⁡θ=a⋅b∥a∥ ∥b∥\cos\theta = \frac{a \cdot b}{\|a\|\,\|b\|}8 vectors × 4 dims · two clusters

Two clusters of four with a shared offset: dot and cosine name different neighbours.

Who is closest to whom — under each measure

Reads /api/labs/similarity — loading

Computing…

Dot product against cosine — Labs — TransformerLab