All lessons in Machine Learning Engineering: Reliable Predictive Models
Correlated Features, Grouped Permutations, and Ablation
Separate reliance of a fitted model from the value of retraining without a feature.
35 minutes · Members lesson · preview
What you will learn
- Compute single-column and grouped permutation importance on a held-out fixture by hand and explain why the grouped value can exceed the sum of the singles.
- Distinguish a fixed model's reliance on a feature from the validation cost of retraining without that feature.
- Choose between permutation and ablation evidence for a concrete decision about a feature that may be unavailable at dispatch.
The parcel carrier's dispatch model has two columns that say almost the same thing. dispatch_load is the number of parcels assigned to a van at dispatch, and load_proxy is a scanner count from the loading bay that tracks it closely. If you ask "how much does the model lean on load?" and your method disturbs one column while leaving its twin untouched, the answer can be small when the fitted model already uses the twin; correlated columns do not always mask each other. This lesson works through two tools that respond to that problem in different ways. Grouped permutation shuffles correlated columns together while the fitted model stays fixed. Ablation retrains the model without a feature and measures what the procedure lost. They answer different questions, and treating one as a substitute for the other is a frequent source of wrong feature decisions.