How can I determine feature importance of an SVM classifier?
조회 수: 137 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 6월 14일
편집: MathWorks Support Team
2021년 9월 28일
I would like to calculate feature importance for a SVM classifier, e.g. by using the metric "mean decrease accuracy".
This means I need to know how the accuracy of my classifier (calculated by cross validation) changes if I leave out features one by one.
I found functions for classification trees, but nor for SVM. How could I calculate this for SVMs?
채택된 답변
MathWorks Support Team
2021년 9월 2일
편집: MathWorks Support Team
2021년 9월 28일
In general, unless you are using a linear kernel SVM, it is not possible to use the parameters of an SVM model to analyze the importance of your features. You can refer to the following external discussions for more information about this reasoning:
Nevertheless, you can still analyze the feature importance for your classification problem (not specific to SVM) by doing some dimensional reduction or feature extraction.
For instance, you can perform neighborhood component analysis using the "fscnca" function in MATLAB to identify relevant features for your classification:
Another popular technique for feature selection is sequential feature selection which can help you select features for classifying high dimensional data:
You can also refer to the following documentation link for other dimensionality reduction and feature extraction techniques in MATLAB:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Classification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!