How can I get predictorImportance in crossvalidated ensemble ?
1 次查看(过去 30 天)
显示 更早的评论
How can i get predictorImportance from a cross validated fitcensemble ?
Mdl.predictorImportance only works for non cross validated ensembles
Thanks
0 个评论
回答(1 个)
Anmol Dhiman
2020-1-29
The error received is indicative of the issue. For trees of the class ClassificationPartitionedEnsemble, you cannot use prediction, so this kind of tree does not have a predict method and hence, cannot be used with 'predictorImportance'.
fitcensemble returns ClassificationPartitionEnsemble object as shown below.
Use kfoldPredict, kfoldLoss, kfoldMargin, kfoldEdge, and kfoldfun in order to use estimate the quality of the classification using fitcensemble.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification Ensembles 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!