When we train a machine learning algorithm on any dataset, the data may have features that are not required as they may not be affecting the target variable or there may be redundant features that are giving the same information to the model.
Feature Selection is a method of selecting features that are affecting the target variables and removing the features that are not required.
Methods of Feature Selection
![Feature Selection Technique](https://i0.wp.com/varshasaini.in/wp-content/uploads/2022/07/feature-selection-techniques-in-machine-learning2.png?resize=550%2C367)
How to Choose a Feature Selection Method
Below is a flow diagram that shows the feature selection method based on the type of feature.
![How to Choose a Feature Selection Method](https://i0.wp.com/varshasaini.in/wp-content/uploads/2022/07/feature-selection-techniques-in-machine-learning7.png?resize=600%2C338)