LightMySky
En anglais

Backpropagation: Assigning Blame for an Error

Training a network means knowing how much each weight contributed to the error, which the chain rule gives by passing derivatives backwards through the layers. Every weight is then nudged by gradient descent, and the whole procedure is one pass forward and one pass back.

Commence ce sujetPas besoin de compte. La progression est enregistrée dans ce navigateur.

Ce que l'enfant saura faire ensuite

  • Propagate an error backwards through a two-layer network by hand
  • Say what the chain rule contributes at each layer boundary
  • Explain why a squashing function with a flat tail slows learning

1 · Lis

Training a stack that can fence the opposite yes corners runs one pass forward and one pass back. Forward, inputs flow layer by layer into a prediction. Then a loss function scores the gap between the prediction and the target.

Try it together

Take y as the square of two x plus one, at x equals one. The inner layer gives three with a local rate of two. The outer square gives a local rate of six, and six times two makes twelve. A second stack, the square of x squared plus one at one, combines four times two into eight.

The backward pass walks the error from the output toward the input. At each layer boundary the chain rule multiplies the local rates together. In the terms of the OpenStax Principles of Data Science textbook this stop follows, static backprop changes only weights and biases, never the wiring. Each weight then takes a small gradient descent nudge downhill against the loss.

A squashing function with a flat tail has a tiny local rate out there. Multiplying by near zero shrinks the signal each layer back, so early layers learn very slowly.

Push forward to score the error, multiply local rates backward, and nudge each weight downhill against the loss.

The rewritten reading was written for this dataset.

2 · Regarde

En anglais

Sans écran

Imprimer une fiche d'exercicesFormat A4, avec une page de corrigés pour les adultes. Sans écran, sans internet.

Où se situe ce sujet

Puis s'entraîner

17 questions attendent derrière cette leçon, chacune avec sa réponse expliquée. Chaque réponse nourrit le ciel : les étoiles s'allument à mesure qu'elles sont apprises, et pâlissent quand vient le moment de revenir.

Commence ce sujet