A generalized additive model (GAM) forms a nonlinear model from separate learned functions, with each component depending on one feature. This preserves an additive, glass-box structure: individual feature effects can be inspected directly instead of reconstructed with a post-hoc explanation method. section 9.5.1 section 9.5
A GAM is useful when the model should remain understandable while capturing nonlinear effects:
- Treat each feature as its own learned component rather than requiring one opaque model to represent every relationship. section 9.5.1
- Extend a generalized linear model by replacing linear feature terms with nonlinear functions. section 9.5 section 9.5.1
- Inspect learned functions to visualize how each feature relates to the target. section 9.5.1
- Add selected pairwise functions when important interactions are needed; this produces the extended structure used by explainable boosting machines (EBMs). section 9.5 section 9.6
Diabetes diagnosis
An EBM for diabetes diagnosis can contain separate nonlinear components for age, blood glucose level, and body mass index, plus one selected pairwise component. It avoids including every possible feature pair, limiting model bloat while retaining a significant interaction. section 9.5.1
