machine-learningscikit-learnrfe

how does a recursive feature elimination decide to support a feature?


what is the base algorithm used in RFE and how does RFE decides which feature to support and which feature not to support?


Solution

  • Before the explanation let is fix some facts:

    1. RFE requires a base algorithm that assigns weights to features. This could be any algorithm that provides feature importance or coefficients, such as linear regression, support vector machines, or decision trees.

    2. Features are ranked based on their importance scores. Features with lower importance are considered less essential.

    3. Remove the least important feature(s)

    Then, the specific details of how RFE decides which feature to support or eliminate depend on the underlying algorithm used for modeling. For example: