Predictor Importance code for SVM and GPR trained regression models.
5 次查看(过去 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..!!!
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!