Maths for ML / Notation

∇θL\nabla_{\theta} L

nabla / gradient

CalculusBeginner

Say it “grad L / del L with respect to theta”

The vector of all partial derivatives. It points in the direction the function increases fastest.

Example

∇f(x,y)=[∂f∂x,∂f∂y]\nabla f(x,y) = \left[\tfrac{\partial f}{\partial x}, \tfrac{\partial f}{\partial y}\right]

In code

loss.backward(); [p.grad for p in model.parameters()]

Where you’ll see it in ML

Gradient descent: θ ← θ − η∇L. The whole of training.

Don’t confuse it with

Lessons that use it

← All 94 symbols