Predictor Importance code for SVM and GPR trained regression models.
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi, using Statistics and Machine Learning Toolbox I have successfully trained two models using SVM and GPR Regression algos (attached here as daSVM and daGPR.. I am trying to find out which variables these two models have defined as most important by weight; or how these variables are ranked by importance. I have previously used the following code below to find out the Predictor Importance for Ensemble Regression model using BAGging algorithms (could not attach the BAG model for its size is too large), but the code below does not work for Gaussian Process Regression models and for Support Vector Machine models. I need a code that will print Predictor Importance and their weights for these two models attached (GPR and SVM). Thank you in advance for your help!
The code that I use for Ensemble BAGging algo:
Load daBAG.mat;
daBAG.RegressionEnsemble
Names = daBAG.RegressionEnsemble.PredictorNames
x = cell(2,96)
x(1,:)= Names
x(2,:)= num2cell(predictorImportance(daBAG.RegressionEnsemble))
x = x;
댓글 수: 0
답변 (1개)
Shishir Singhal
2020년 4월 29일
Hi,
For SVM, please refer to this link : https://www.mathworks.com/matlabcentral/answers/406577-how-can-i-determine-feature-importance-of-an-svm-classifier
Hope this helps..!!!
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!