Predictor Importance for Bagged Trees in Classification Learner App??
이전 댓글 표시
Hello,
I have sucessfully used BaggedTrees in the classificationLearner app to classify my data. I would now like to know (and show) which of my predictors are most useful in determining class. How can I do this?
The scatter plots generated in the app are helpful, but not what I am looking for. I want something like a bar graph that shows the most and least relevant predictors, or ideally a decision tree which shows which predictors give the greatest class separations.
I have found examples of this with different set ups, but I can't figure out how to make them work for me. The command I have seen to make decision trees is: view(trainedModel.ClassificationTree,'Mode','graph')
I have also seen the predictor importance found using: imp = predictorImportance(ens)
However, these methods have not worked for me. My code is simply a data importation and the command to call the classifier: fit = trainedModel2.predictFcn(Table);
Any help would be HUGELY appreciated.
Thanks,
Ciara
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Classification Ensembles에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
