aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 3. Learning & Generalization
Lesson 11 of 11 8 min · 121 words

Feature selection

Keeping only the features that help, by filters, wrappers or Lasso.

Feature selection keeps a subset of the original features. Fewer features means faster models, less overfitting, easier interpretation and cheaper data collection.

Filter methods score each feature independently of any model — correlation with the target, mutual information, chi-squared tests — and keep the top ones. Fast, but they ignore interactions.

Wrapper methods search over subsets by actually training models: forward selection (add the best feature one at a time), backward elimination (remove the worst), recursive feature elimination. Accurate but expensive.

Embedded methods select features as part of training: lasso zeroes out weights, and tree-based models report feature importances.

Formula to remember

Ridge objective

L2 penalty shrinks all weights.

Quick check · +5 XP

Ridge regression adds which penalty?

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser