Backpropagation

How can we improve a recipe step-by-step?

Image: Gpeyre, CC BY-SA 4.0, via Wikimedia Commons

Backpropagation

How can we improve a recipe step-by-step?

Imagine you're adjusting a recipe based on taste feedback. Each ingredient's amount affects the final taste, and you want to know which ingredient to tweak for the best result.

Think of adjusting the recipe like finding the steepest slope on a hill. You're trying to get the highest taste (the peak) by changing ingredients (the slope). The technical term for this is calculating the gradient of the loss function with respect to the weights.

Example

If increasing the amount of salt by 1 gram improves taste by 2 units, the gradient tells us how much better the taste will get for each gram of salt added.

Remember this

The gradient shows you the direction and steepness of the best way to improve your recipe.

Related concepts

Swipe through more Machine Learning concepts

Open Pocket Polymath