How can I get predictorImportance in crossvalidated ensemble ?
조회 수: 5 (최근 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!