intuitiveai

Calculus & Gradients

Calculus & Gradients

Understand slopes, partial derivatives, the chain rule, and gradient descent through visual and coded experiments.

For a small example, minimize (w - 3)^2 starting at w = 0. Differentiate to get 2(w - 3), take a small step opposite the gradient, and watch the loss shrink.

In practice

A linear predictor has slope and intercept errors. Compute partial derivatives, update both parameters, and compare analytical gradients with finite differences.

Initializing Interactive Playground...

Experiment notes

Record your experiment

Predict how one control changes the Calculus & Gradients result.

Feedback & sharing

Helpful?