Book a free demo

๐Ÿ’ก Interactive lessons ยท free, no sign-up

Gradient descent, how AI learns by rolling downhill

Play Gradient Descent (AI)

Loading Gradient Descent (AI)โ€ฆ

Roll a ball down a valley and change the learning rate. See why a good step size reaches the bottom and a bad one bounces.

ShareWhatsApp

How to play Gradient Descent (AI)

  1. Read the first step: picture the error as a valley and the learning as a ball rolling down.
  2. Move the sliders and switches to change the diagram and watch what happens. The readout under the picture shows the numbers.
  3. Answer each question. If you are wrong you get a hint and can try again, with no penalty.
  4. Some steps ask you to make something happen, such as hitting a target value. Experiment until it works.
  5. Finish the lesson to earn XP and see how many questions you got right first time.

Tips and strategy

  • Do not rush. The controls are there to be played with, so try extreme values as well as sensible ones.
  • Say what you notice out loud or write it down before you press Continue.
  • Use the hint when you are stuck, and then try to explain the answer in your own words.
  • Watch the dotted path. It shows every step the ball takes.

Keep playing

More games you might like

All 116 games โ†’

FAQ

Gradient Descent (AI): questions

What is gradient descent?

A method for finding a low point of a function by repeatedly stepping downhill, in the direction that reduces the error fastest.

What is the learning rate?

The size of each step. Too small is slow, and too large can overshoot the bottom and bounce around.

Why does the step shrink near the bottom?

The step is proportional to the slope, and the slope flattens near the bottom, so the steps get smaller.

What age is this lesson for?

It suits ages 14 and up, especially after meeting slope.

Start a conversation

Questions about classes?

A parent or guardian can share the learner's age, level and goals, and we'll suggest a starting point and confirm the format before anything is booked.

  • Tell us the learnerโ€™s age or grade and goals
  • Weโ€™ll suggest a suitable class or learning path
  • Weโ€™ll confirm format, timing and fees with a parent or guardian

For a childโ€™s class, please have a parent or guardian send the enquiry. Avoid sharing passwords or sensitive personal details.

Weโ€™ll use your details only to respond to this request.

Chat on WhatsApp
Esc

Try