Feature Selection in Machine Learning
Over 20 methods to select the most predictive features and build simpler, faster, and more reliable machine learning models.
Feature Selection in Machine Learning
2nd Edition
Now available as eBook and Paperback.
Book Description
Feature selection is one of the most impactful steps in any machine learning pipeline, yet it's often overlooked or done poorly.
When you include irrelevant or redundant features in your model, you pay for it: slower training, higher complexity, and models that overfit and fail in production. Feature selection fixes that. By identifying and keeping only the most predictive variables, you build models that are faster, simpler, and more reliable; and whose outputs are actually interpretable by the people who use them.
This book gives you a complete, practical toolkit of over 20 feature selection methods, covering everything from foundational techniques to advanced approaches used in data science competitions and industry.
You'll work through filter, wrapper, and embedded methods, then go further, exploring methods designed by computer science researchers and battle-tested practitioners that are faster or more scalable for real-world data.
Specifically, you'll learn how to:
- Remove useless and redundant features by examining variability and correlation.
- Choose features based on statistical tests such as ANOVA, chi-square, and mutual information.
- Select features using Lasso regularization or decision tree feature importance; methods baked directly into the machine learning process.
- Apply recursive feature elimination, addition, and value permutation to squeeze the best performance from your models.
Each chapter follows a clear structure: first the fundamentals, then a hands-on Python implementation using Scikit-learn, MLXtend, and Feature-engine. You'll be able to select the best numerical and categorical features for regression and classification in just a few lines of code.
The book also comes with a GitHub repository containing the full source code, ready for you to download, adapt, and use in your own projects.
One important distinction worth knowing: feature selection differs from dimensionality reduction in that it doesn't transform your variables; it simply selects the most valuable ones, keeping your data fully interpretable.
By the end, you'll know what feature selection is and which method to reach for, and why.
Book Content
- Chapter 1: Feature Selection Overview
- What is feature selection?
- Why do we select features?
- Feature selection methods
- Filter methods
- Wrapper methods
- Embedded methods
- Other methods
- Chapter 2: Basic Feature Selection Methods
- Constant features
- Quasi-constant features
- Duplicated features
- Chapter 3: Correlation of Predictors
- Correlation coefficients
- Visualizing correlated features
- Remove correlated features: retain first
- Remove correlated features: retain best
- Correlation of categorical variables
- Chapter 4: Statistical Methods
- Chi-square
- Anova
- Correlation
- Mutual information
- Chapter 5: Univariate Feature Selection
- Single feature model
- Target encoding
- Chapter 6: Wrapper Methods
- Exhaustive search
- Forward feature selection
- Backward feature elimination
- Chapter 7: Embedded Methods
- Lasso
- Feature importance from decision trees
- Chapter 8: Recursive Feature Elimination
- RFE - embedded importance
- RFE - model performance
- Chapter 9: Additional Selection Methods
- Recursive feature addition
- Feature permutation
- Probe features
- MRMR
👉 epub and pdf
👉 Paperback with our partners
👉 200 pages
👉 English
What our readers say
Can't afford it? Get in touch.
Paperback
Get a Paperback copy through our Partner Lulu Press.
eBook and Paperback also available on Amazon and all major retailers