Labs / Computer Science

Gradient Descent

A straight line is trying to fit a cloud of points. On the left it nudges its slope and intercept to shrink the total squared error; on the right, those same two numbers are a marble rolling downhill on the loss surface. Add your own points, change the learning rate, and step or run the descent.

Labs / Computer Science / Gradient Descent

Computer Science20–30 minFoundation

Gradient Descent

A straight line is trying to fit a cloud of points. On the left it nudges its slope and intercept to shrink the total squared error; on the right, those same two numbers are a marble rolling downhill on the loss surface. Add your own points, change the learning rate, and step or run the descent.

Why it matters

Why explore this?

Computer science turns clear rules into reliable processes. This model lets you step through those rules and see how each decision changes the result.