oobPermutedPredictorImportance
Predictor importance estimates by permutation of out-of-bag predictor observations for random forest of regression trees
Description
returns
a vector of out-of-bag,
predictor importance estimates by permutation using the random
forest of regression trees Imp
= oobPermutedPredictorImportance(Mdl
)Mdl
. Mdl
must
be a RegressionBaggedEnsemble
model
object.
uses
additional options specified by one or more Imp
= oobPermutedPredictorImportance(Mdl
,Name,Value
)Name,Value
pair
arguments. For example, you can speed up computation using parallel
computing or indicate which trees to use in the predictor importance
estimation.
Input Arguments
Output Arguments
Examples
More About
Tips
When growing a random forest using fitrensemble
:
Standard CART tends to select split predictors containing many distinct values, e.g., continuous variables, over those containing few distinct values, e.g., categorical variables [3]. If the predictor data set is heterogeneous, or if there are predictors that have relatively fewer distinct values than other variables, then consider specifying the curvature or interaction test.
Trees grown using standard CART are not sensitive to predictor variable interactions. Also, such trees are less likely to identify important variables in the presence of many irrelevant predictors than the application of the interaction test. Therefore, to account for predictor interactions and identify importance variables in the presence of many irrelevant variables, specify the interaction test [2].
If the training data includes many predictors and you want to analyze predictor importance, then specify
'NumVariablesToSample'
of thetemplateTree
function as'all'
for the tree learners of the ensemble. Otherwise, the software might not select some predictors, underestimating their importance.
For more details, see templateTree
and Choose Split Predictor Selection Technique.
References
[1] Breiman, L., J. Friedman, R. Olshen, and C. Stone. Classification and Regression Trees. Boca Raton, FL: CRC Press, 1984.
[2] Loh, W.Y. “Regression Trees with Unbiased Variable Selection and Interaction Detection.” Statistica Sinica, Vol. 12, 2002, pp. 361–386.
[3] Loh, W.Y. and Y.S. Shih. “Split Selection Methods for Classification Trees.” Statistica Sinica, Vol. 7, 1997, pp. 815–840.
Extended Capabilities
Version History
Introduced in R2016b