Computer Science I / Multivariable Calculus and Gradients
Practice question · Put in order

Order one iteration of gradient descent.

Hints
  1. Nothing can be negated or scaled before it has been computed.
  2. The learning rate is applied to a direction that has already been chosen.
Show the answer
  1. Evaluate the partial derivatives at the current point
  2. Assemble them into the gradient vector
  3. Negate the gradient to get the descent direction
  4. Scale that direction by the learning rate
  5. Add the result to the current point to get the next one
Why

Partials, gradient, negate, scale, move. Repeating this until the gradient is near zero is the whole of the algorithm, and because the gradient vanishes at a minimum, the algorithm's own stopping condition is the multivariable version of f'(x) = 0.

Read the lesson: Multivariable Calculus and Gradients →

Practise Multivariable Calculus and Gradients

The app has 6 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Multivariable Calculus and Gradients