Tune your model
Evaluate model tuning strategies and find optimal settings for your prediction model.
Learning objectives
At the end of this session you should be able to
- explain some basic principles of (general) additive models and the LOESS smoother,
- discuss the importance of model tuning and its tripping hazards, and
- implement some basic model tuning strategies.
Basic idea of model tuning
The graphic above shows how a changing number of knots affects the result of a generalized additive model (GAM). With increasing knots, the model becomes more flexible to adapt itself to the dataset. By increasing the number of knots, the dataset provided to the model is fitted with increasing accuracy. However, overfitting of the sample dataset increases, too.
Comments?
You can leave comments below if you have questions or remarks about any of the text or code in this unit. Please copy the corresponding line into your comment to make it easier to answer your question.