A model uses 800 features. Which can we remove, and what can importance tell us?
Distinguish a useful predictor from a causal explanation and measure whether a feature earns its cost.
01. Separate three questions
Feature selection asks which inputs improve the model under constraints. Feature importance describes how a fitted model uses information under a particular measurement procedure. Causal importance asks what would happen if something in the world changed. These questions require different evidence.
A delivery model might rely heavily on restaurant ID because it captures preparation-time differences. That does not mean changing the ID would change a real restaurant. It also raises a deployment question: how will the model perform for a new restaurant?
02. Measure incremental value
Start with a compact baseline, add feature groups, and compare on a fixed development protocol. Record quality, feature-fetch latency, missingness, and maintenance cost. A small average gain may be valuable on a critical cohort, while an impressive offline gain may disappear after correcting leakage.
Suppose adding weather reduces held-out MAE from 6.0 to 5.8 minutes but adds a remote dependency. Compare precomputed weather, a stale-value fallback, and removal during outages. Selection should consider the performance of the actual degraded system, not just the ideal input table.
03. Interpret importance with correlated inputs
If two features encode nearly the same information, removing one may have little effect because the other substitutes for it. Conversely, permuting one feature independently may create combinations the real world rarely produces. A low or high permutation score must be interpreted in that context.
For this hypothetical delivery model, distance in miles and distance in kilometers are redundant. An importance ranking that places one low is not evidence that distance is irrelevant. Compare joint ablations and inspect representative errors. Validate any model-specific importance measure against the question you actually need to answer.
04. Keep selection inside model development
Selecting features using all data leaks information into evaluation. Perform selection within training folds when tuning the procedure, and reserve an untouched final set. Repeatedly removing features based on test performance turns the test set into a development set.
Follow-up: can you remove every feature with a tiny individual effect? Not necessarily. Small effects may add up or interact. Remove groups incrementally, retrain where appropriate, and measure the resulting model. Keep a versioned feature manifest so rollback restores both the predictor and its expected inputs.
Practice the follow-up
Explain how two redundant predictors can each look unimportant when removed individually but matter when removed together.
Connect this to model-selection discipline.
Sources & further reading
scikit-learn: feature selection. The interview scenario, calculations, and proposed design choices are illustrative.
Continue your preparation
Choose a connected learning path or browse more ML fundamentals questions. Read our editorial method and attribution policy.