Training Loss and Previously Unseen Examples

Training loss summarizes predictions on data used for fitting. Performance on new inputs needs evaluation on a relevant separate set.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a memorizing predictor
  2. Choose a held-out check
  3. Compare loss on used and unseen examples
  4. Attribute a gap only with enough evidence

Trace a memorizing predictor

A model can record every training input and replay its known target exactly. It may have an arbitrary rule for a new input. Dictionary caches illustrate the replay mechanism.

Choose a held-out check

Compare ordinary training and evaluation cases with distinct identities. Preserve the procedure that keeps evaluation examples separate. Training and test roles explain which set supports the comparison.[1]

Compare loss on used and unseen examples

A model predicts three and seven on two training labels four and six. Training mean squared error is one. On two separate examples with observed labels five and nine and predictions four and six, errors have magnitudes one and three, giving mean squared error five. See prediction losses.

Training residuals 1,-1 → MSE 1
Held-out residuals 1,3 → MSE 5
The training example and evaluation example have distinct roles

Attribute a gap only with enough evidence

Distribution shift, small evaluation size and fit to noise can all alter the gap. Check consistent preprocessing and multiple independent examples before diagnosing cause.

References

  1. Gareth James et al., An Introduction to Statistical Learning ↩