Parameters Versus Data

Deep learning becomes clearer when data and parameters do not blur together.

Data comes from outside the model.

Parameters are stored inside the model and adjusted by training.

For a training example:

x = input features
y = target value

For a model:

w, b = parameters

The model uses x, w, and b to compute a prediction:

y_hat = wx + b

Then the prediction is compared with the target y.

The target tells the training process what the model should have predicted. The target is not a parameter either.

What changes during training?

During training, the dataset is read many times. The examples do not become model parameters. Instead, the parameters are adjusted so the model computes better predictions on examples like the ones it saw.

This distinction matters because memorizing data is not the same as learning a useful function.

DL-C02-T04-001Exercise: Identify a parameter

In y_hat = wx + b, which values are parameters? Enter 1 for w and b, or 0 for x and y_hat.

Compute it first, then check your number.

HintLook for stored values

Parameters live inside the model between examples.

SolutionWork it out

w and b are model parameters. x is supplied as input, and y_hat is computed as output.

DL-C02-T04-002Exercise: Identify the target

A training pair is (x, y). The model computes y_hat. Which value is the target supplied by the dataset? Enter 1 for y, or 0 for y_hat.

Compute it first, then check your number.

HintPrediction versus answer

The model creates one of these values. The dataset supplies the other.

SolutionWork it out

y is the target from the dataset. y_hat is the prediction computed by the model.