Norm (length)
Say it: "the norm of x"
What it means
The length of a vector. The usual (L2) norm is ; the L1 norm is .
Example
Straight-line distance vs grid (taxi) distance.
In code
import numpy as np x = np.array([3, 4]) print(np.linalg.norm(x), np.linalg.norm(x, 1))
Output
5.0 7.0
Where it appears in machine learning
Distances between data points, L2 and L1 regularisation (), and normalising embeddings.
Related symbols
Learn it properly in the free lesson Vectors, Norms & the Dot Product, with practice questions that check your answers.