Maths for ML / Notation

X, A\mathbf{X},\ A

capital letter (matrix)

Linear algebraBeginner

Say it “matrix X”

Capital letters usually mean a matrix. In ML, X is often the whole dataset: one row per example.

Example

X∈Rn×d\mathbf{X} \in \mathbb{R}^{n\times d}

n examples, d features each.

In code

X.shape == (n, d)

Where you’ll see it in ML

Design matrix X, weights W, attention matrices Q, K, V.

Don’t confuse it with

Lessons that use it

← All 94 symbols