MATLAB R2018B documents the commands oobPermute​dPredictor​Importance and predictorImportance but these commands are not recognized by MATLAB, neither at the command nor in m-code.

조회 수: 2 (최근 30일)
MATLAB R2018B documents the commands oobPermutedPredictorImportance and predictorImportance but these commands are not recognized by MATLAB. This is true for both the command line and when running m-code.
I have developed an tree ensemble model and I need to determine the predictor variables importances.

답변 (1개)

Steven Lord
Steven Lord 2019년 1월 27일
From the documentation page for the oobPermutedPredictorImportance function:
Mdl must be a RegressionBaggedEnsemble model object.
It is a method of that class, not a plain old function. It will only work when its first input is one of those objects. You can't, for example, say oobPermutedPredictorImportance(magic(4)) because magic(4) returns a double array, not a RegressionBaggedEnsemble object.
The same general answer holds for predictorImportance, though it may be a different class or a different set of classes that define this method.
  댓글 수: 1
Christopher Stokely
Christopher Stokely 2019년 1월 27일
Do I have to use fitrensemble to generate the regression mode?
I am interested in classification though. Does fitcensemble support those methods?
Are there no predictor importance methods for classification ensemble models or decision trees? If so, is the classificationLearner app sufficient to build a model that can be explored with predictor importance methods?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Classification Ensembles에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by