Maths for ML / Notation

In\mathbf{I}_n

identity matrix

Linear algebraBeginner

Say it “identity / I n”

Square matrix with 1s on the diagonal and 0s elsewhere. Multiplying by it changes nothing.

Example

Ix=x\mathbf{I}\mathbf{x} = \mathbf{x}

In code

np.eye(n)
torch.eye(n)

Where you’ll see it in ML

Ridge regression adds λI; residual connections are 'identity plus a little'.

Don’t confuse it with

Lessons that use it

← All 94 symbols