Fitting a Model: Generalization, Overfitting, Underfitting
Fitting a model means making the ML algorithm learn the relationship between
predictors and response so that the future values of the outcome can be predicted.
A model is underfitting the training data when the model performs poorly on the
training data. This is because the model is unable to capture the relationship between
the predictors and the responses.
Poor performance on the training data could be because the model is too simple.
A model is overfitting the training data when the model performs well on the training
data but does not perform well on the evaluation data. This is because the model is
memorizing the data it has seen and is unable to generalize to unseen examples.
Poor performance on the training data could be because the model is too complex.
Generalization: The ability of the learned model to fit unseen instance.
The goal of machine learning is to let the learned model fit unseen instance well. A
model with strong generalization ability can fit the whole sample space well
The fundamental tension of machine learning is between fitting the data
well, but also fitting the data as simply as possible
References
[Link]
[Link]
[Link]