From a Straight Line to Backpropagation
Running It, and Reading the Curve It Produces
Last timePaying for the Shared Part Once
The finished method on the original twelve points, with an error curve whose floor is twelve rather than zero, and three misbehaving curves with the number to change for each.
Everything the method needs is in hand: a number that says how wrong a set of
parameters is, a way of getting its derivative with respect to every parameter
for the price of a few evaluations, and a bound on how far a step may go. What
is left is to run it on the twelve measurements it started with, $y = 6, 7, 10,
15, 18, 19, 22, 27, 30, 31, 34, 39x = 1$ through 12, and to read the curve
it produces, because that curve is the only thing anybody watches. Nothing has
been held back for a test: the run sees all twelve.
Which model the run uses, and why that one
The run below fits a straight line to the centred inputs rather than the bent
two unit network, for one reason: the straight line's error curve can be written
as a formula, so every number the run produces can be checked against it and
every diagnosis can be seen to be right rather than merely plausible. The bent
network has no such formula, and the last section says what carries over.
So write for the centred inputs, as the bound on the step
size required, and fit . Centring makes , and
with and the two equations separate at
once:
$$
Undoing the centring gives
, so this is the line , the
exact solution produced earlier. Taking a residual as the measurement minus the
prediction, , the twelve residuals are
repeating, and the total squared error is twelve.
The error surface, exactly
Let and measure how far the parameters are from the
answer, the same two deviations the step size bound was written in, and write
for the residuals of the exact line. Moving the slope by and the
intercept by raises each prediction by , so the measurement minus
the prediction becomes , and squaring and summing gives
$$
Three of those six sums vanish. and are the two
normal equations themselves, and is the centring. What is left is
exact, with no approximation anywhere:
The lesson stops here
10 more paragraphs to go
You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.
The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.
See the planThe contentsThis is the reading half
Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.
The contents