Maths for ML / Notation

Rn,Rm×n\mathbb{R}^{n}, \mathbb{R}^{m\times n}

real vector / matrix space

Number systemsBeginner

Say it “R n / R m by n”

ℝⁿ is the set of length-n real vectors; ℝ^{m×n} is the set of m-by-n real matrices. It tells you shape.

Example

W∈R768×3072W \in \mathbb{R}^{768\times 3072}

W is a 768 × 3072 matrix.

In code

W.shape == (768, 3072)
W.shape == torch.Size([768, 3072])

Where you’ll see it in ML

The fastest way to learn a tensor's shape from a paper.

Don’t confuse it with

Lessons that use it

← All 94 symbols