Session Ready
Exercise

Automatic Recursive Feature Elimination

Now let's automate this recursive process. Wrap a Recursive Feature Eliminator (RFE) around our logistic regression estimator and pass it the desired number of features.

All the necessary functions and packages have been pre-loaded and the features have been scaled for you.

Instructions
100 XP
  • Create the RFE with a LogisticRegression() estimator and 3 features to select.
  • Print the features and their ranking.
  • Print the features that are not eliminated.