Fitted Parameters and Model Settings

Fitted parameters are produced by training. Hyperparameters or model settings govern that process or define a choice among possible models.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a neighbor model
  2. Protect the final check
  3. Separate choices defining the fit from results of fitting
  4. Label how each setting was selected

Trace a neighbor model

The chosen value of k determines how many nearby examples vote. It can be selected using validation data. The stored training examples and chosen feature transformation then determine predictions. See neighbor voting.

Protect the final check

Repeatedly changing settings based on final results makes that data part of the selection process. Model evaluation boundaries gives the appropriate separation.[1]

Separate choices defining the fit from results of fitting

A ridge regression can select penalty weight before training. Given that choice and a training set, fitting returns coefficients. Changing the penalty can produce different coefficients on the same data. Record both when reporting or deploying the result. See regularization tradeoffs.

Choose candidate penalty values
Fit one model per candidate using training data
Compare candidates on validation data
Record selected setting and learned coefficients

Label how each setting was selected

Some model settings can be tuned, and others follow an application constraint. Repeatedly using final test results for those choices undermines its independence. Keep the selection procedure reproducible.

References

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