Skip to content

Feature Selection Methods

For people

Filter, wrapper and embedded methods for choosing which features to keep, and why fewer good features often beat many.

Editorial team 2 min read

Share X LinkedIn Reddit Bluesky Email

More features are not always better. Irrelevant or redundant features add noise, slow training and increase the risk of overfitting.

Why Select Features

  • Better generalisation with less noise.
  • Faster training and prediction.
  • Simpler, more explainable models.
  • Lower cost of collecting and maintaining data.

Filter Methods

Score each feature independently of any model, then keep the best:

  • correlation with the target (for numeric targets);
  • mutual information;
  • chi-squared tests for categorical data;
  • dropping near-constant or highly correlated duplicate features.

Fast, but they ignore how features interact.

Wrapper Methods

Train models with different feature subsets and keep the best-performing set. Recursive feature elimination (RFE) repeatedly drops the weakest feature. Accurate but computationally expensive.

Embedded Methods

Selection happens during training:

  • Lasso drives weak coefficients to zero.
  • Tree ensembles provide importance scores.

Avoid Leakage

Feature selection is a learned step. Do it inside cross-validation folds (for example within a pipeline), or the chosen features will reflect the validation data and inflate scores.

Use Domain Knowledge

Automated scores can't tell you whether a feature will be available at prediction time, is legally usable, or is a proxy for a sensitive attribute. Review selected features with people who know the data.

More in Machine learning

All Machine learning guides →
Machine learning Guide · 2 min

Linear Regression Explained

The simplest predictive model: how linear regression fits a line through data, how to read its coefficients, and when it breaks down.

Machine learning 2 min read 25 Sep 2026 For people

Machine learning Guide · 2 min

Logistic Regression for Classification

Despite its name, logistic regression is a classification method. How it produces probabilities and why it remains a strong baseline.

Machine learning 2 min read 24 Sep 2026 For people

Machine learning Guide · 2 min

Decision Trees

How decision trees split data with simple questions, why they are easy to explain, and why single trees overfit.

Machine learning 2 min read 23 Sep 2026 For people

Machine learning Guide · 2 min

Random Forests

Why averaging many randomised decision trees produces a robust, accurate model with little tuning.

Machine learning 2 min read 22 Sep 2026 For people

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in