From secant to tangent
The topic The singular value decomposition closed the linear algebra part. We can now describe a model: it is a map such as the linear layer . We cannot yet train it. Training changes the parameters to lower a loss , and for that we need to know how the loss reacts to a small change of . That is what a derivative measures. This topic works with a single parameter; many parameters come in the next one.
Take two points on the graph of , at and at . The line through them is a secant. Its slope is the difference quotient
For at the quotient equals . With it is , with it is . As the secant turns into the tangent, and its slope settles at one number. That limit is the derivative:
Here .
The running example of this topic is a model with one weight that predicts . On a single example its squared error is
At the loss is . The sign of tells us which way to move , and its size tells us how strongly the loss responds.