Apex › Storage & databases

How a neural network learns (backprop)

The algorithm behind all of deep learning. A net is a function with weight knobs; training finds the knobs that make the output match the target. Backpropagation computes the gradient (∂loss/∂weight) for every weight in ONE backward sweep via the chain rule, reusing the forward values — so all gradients cost about one forward pass, which is why training huge nets is feasible. Real 2-2-1 sigmoid net, verified by a gradient check (analytic backprop matches finite-difference to 5 digits). Press train and watch the loss fall.

More in Storage & databases