Underfitting
When a model is too simple to capture the real pattern, so it is wrong on training and new data alike.
A model underfits when it cannot represent the relationship in the data, for example a straight line through a clearly curved pattern. Both training error and test error stay high, and they are close to each other.
Fixes: use a more flexible model (more features, polynomial terms, deeper trees, a neural network), reduce regularisation, or engineer better features. Underfitting is a bias problem; overfitting is a variance problem.
See it in action
- Bias, variance and cross-validationWhy models fail to generalise, the error decomposition, and how cross-validation chooses complexity.
- Polynomial regression and model capacityFit curves by expanding features, and learn to pick the complexity that generalises.
- Linear regressionFit the straight line (or hyperplane) that predicts a number with the least squared error.