1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Dimensionality Reduction in Python

Connected

अभ्यास

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.

निर्देश

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.