Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Matrices0/5
  • Derivatives0/5
  • Probability0/6
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
dydx\tfrac{dy}{dx}dxdy​Maths, module 12: Derivatives, lesson 3 of 5

Gradients

A model's error depends on millions of parameters at once. The gradient collects one slope per parameter into a single vector that points uphill.

9 minute read2 things to try6 questionsFree

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • A partial derivative is the slope along one input with the others held fixed.
  • The gradient ∇f\nabla f∇f is the vector of all partial derivatives.
  • ∇f\nabla f∇f points uphill, and its length is the steepness. −∇f-\nabla f−∇f points downhill.

More in Derivatives

  1. 1Slope and the derivative
  2. 2The chain rule
  3. 3Gradients
  4. 4Backpropagation by hand
  5. 5Valleys, peaks and saddles