Maths for ML / Notation

rank⁡(A)\operatorname{rank}(\mathbf{A})

rank

Linear algebraIntermediate

Say it “rank of A”

How many truly independent directions a matrix has.

Example

rank⁡(uv⊤)=1\operatorname{rank}(\mathbf{u}\mathbf{v}^{\top}) = 1

In code

np.linalg.matrix_rank(A)
torch.linalg.matrix_rank(A)

Where you’ll see it in ML

LoRA: fine-tune with a low-rank update instead of a full matrix.

Don’t confuse it with

Lessons that use it

← All 94 symbols