How does Recursive Feature Elimination (RFE) work?

Quick Overview

Asks how Recursive Feature Elimination works as a feature selection method. It tests whether you can describe the elimination loop, explain why refitting matters for correlated features, choose how many features to keep, and name the costs and caveats.

How does Recursive Feature Elimination (RFE) work?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does Recursive Feature Elimination (RFE) work? ```hint What gets recomputed Describe one iteration of the loop, then ask why it matters that the model is refit after features are removed instead of ranking every feature once from a single fit. ``` ### What a Strong Answer Covers - The steps of the elimination loop and what the model's importances are used for - Why refitting after each removal can give a different result than one-shot ranking, especially with correlated features - How to choose the number of features to keep - The costs and caveats: compute, greediness, feature scaling, and the base model's biases ### Follow-up Questions - How would you evaluate a model built on RFE-selected features without leaking information from the selection step? - When would you prefer a filter method or L1 regularization over RFE? - What changes if the base estimator is a random forest instead of logistic regression?

Overview: Asks how Recursive Feature Elimination works as a feature selection method. It tests whether you can describe the elimination loop, explain why refitting matters for correlated features, choose how many features to keep, and name the costs and caveats.

General logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

How does Recursive Feature Elimination (RFE) work?

What a Strong Answer Covers Guidance

  • The steps of the elimination loop and what the model's importances are used for
  • Why refitting after each removal can give a different result than one-shot ranking, especially with correlated features
  • How to choose the number of features to keep
  • The costs and caveats: compute, greediness, feature scaling, and the base model's biases

Follow-up Questions Guidance

  • How would you evaluate a model built on RFE-selected features without leaking information from the selection step?
  • When would you prefer a filter method or L1 regularization over RFE?
  • What changes if the base estimator is a random forest instead of logistic regression?