Backpropagation

The algorithm that computes how much each weight in a network contributed to the final error, by applying the chain rule backward from the output layer to the input layer.

See it explained in full