Learning objectives
- Explain the ideas behind overfitting, underfitting, and regularization.
- Apply the ideas to the example and identify how you would check the result.
Concepts
Underfitting misses useful patterns even on training data. Overfitting captures training-specific noise and generalizes poorly. Limit tree depth or penalize large coefficients to reduce complexity, and validate the trade-off.
Practical example
Compare train and test results as a tree gets deeper. A widening gap can signal overfitting.
Try the exercise
- Define the task. Compare train and test results as a tree gets deeper. A widening gap can signal overfitting.
- Identify the key idea. Underfitting misses useful patterns even on training data.
- Check your decision. Describe an alternative and how you would compare its results.