www.gusucode.com > stats 源码程序 matlab案例代码 > stats/PredictorImportanceAndSurrogateSplitsExample.m
%% Predictor Importance and Surrogate Splits % Estimate the predictor importance for all variables in the Fisher iris % data for an ensemble where the trees contain surrogate splits. %% % Load Fisher's iris data set. load fisheriris %% % Grow an ensemble of 100 classification trees using AdaBoostM2. Specify % to identify surrogate splits. t = templateTree('Surrogate','on'); ens = fitensemble(meas,species,'AdaBoostM2',100,t); %% % Estimate the predictor importance and predictive measures of association % for all predictor variables. [imp,ma] = predictorImportance(ens) %% % The first two predictors show much more importance than the analysis in % <docid:stats_ug.bu4l9ab>.