01 / Foundations
Functions, data, and parameters
A model is a function whose adjustable parameters are learned from examples.
A function maps an input to an output. In y = mx + b, x is the input and the predicted y is the output.
The examples stay fixed while fitting. The parameters m and b change because they control the function's behavior.
Learning means choosing parameter values that make predictions agree with the observed targets. The same distinction scales from a two-parameter line to a transformer with billions of parameters.
Worked example
Suppose y = 2x + 1. For x = 3, the prediction is 7. The input x and observed target come from the example; m = 2 and b = 1 are parameters. Changing b shifts every prediction equally. Changingm changes how strongly the prediction responds to x.