Feature Importance value for SVM, KNN, and Discriminant type classifier?

9 vues (au cours des 30 derniers jours)
Muhammad Tahir Khan Niazi
Muhammad Tahir Khan Niazi le 23 Sep 2021
I am using MATLAB classification learner app for my classification task. I am interested to know feature importance value for each kind of machine learning model. I know feature importance for tree and ensemble type models can be find out by 'predictorimportance' function. Is there any way that can be used to determine feature importance value in case of SVM,KNN Discriminant type classifier?

Réponses (1)

Ayush Aniket
Ayush Aniket le 29 Août 2024
In MATLAB, there is no direct method to find out feature importance for models like SVM, KNN, and discriminant analysis.
However, for determining feature importance for these models you can use Recursive Feature Elimination (RFE) technique that recursively removes the least important features based on the model's performance and can be adapted to any of the above-mentioned models.
You can use the sequentialfs function in MATLAB to implement it. The function uses a custom criterion function to select the features and these can be the models SVM, KNN etc. Refer to the following documentation to read about the process of using a custom criterion function:
The importance of the feature can be implied from the order in they are removed.

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by