Azzera filtri
Azzera filtri

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

11 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Ayush Aniket
Ayush Aniket il 29 Ago 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.

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by