Magnitude
The size of a vector, the length of its arrow, written |v|: how far it reaches, whatever its direction. By Pythagoras, the vector (3, 4) has magnitude 5. Two vectors can point in the same direction but have different magnitudes; in machine learning, cosine similarity ignores magnitude.
ⓘ Technical definition
The Euclidean or L2 norm |v| = √(Σᵢ vᵢ²), also written ‖v‖ or ‖v‖₂, never negative and zero only for the zero vector. Normalising a vector to unit magnitude (|v| = 1) is called L2-normalisation and is commonly applied before cosine comparisons.
→ First introduced in: Vectors: magnitude, direction and components