Main Content

预测象征

估计classificati预测的重要性on ensemble of decision trees

句法

一世mp = predictorImportance(ens)
[[一世mp,ma] = predictorImportance(ens)

Description

一世mp=预测象征((enscomputes estimates of predictor importance forensby summing these estimates over all weak learners in the ensemble.一世mphas one element for each input predictor in the data used to train this ensemble. A high value indicates that this predictor is important forens

[[一世mp,,,,ma] = predictorImportance(ens返回ap-by-p矩阵具有相关性的预测度量ppredictors, when the learners inenscontain surrogate splits. See更多关于

我nput Arguments

ens

一个classification ensemble of decision trees, created byFitCensemble,或通过compactmethod.

输出参数

一世mp

一个row vector with the same number of elements as the number of predictors (columns) inens。X。条目是预测指标重要性的估计值,0representing the smallest possible importance.

ma

一个p-by-pmatrix of predictive measures of association forppredictors. Elementma(I,J)是在预测器上对替代分裂平均的关联的预测度量jfor which predictor是最佳的拆分预测变量。预测象征averages this predictive measure of association over all trees in the ensemble.

eXamples

expand all

估计Fisher Iris数据中所有变量的预测重要性。

load Fisher's iris data set.

加载fisheriris

使用adaboostm2训练分类合奏。将树树桩指定为弱学习者。

t=Templatetree(('MaxNumSplits',,,,1);ens = fitCensemble(MES,物种,'方法',,,,'adaboostm2',,,,“学习者”,t);

estimate the predictor importance for all predictor variables.

一世mp = predictorImportance(ens)
一世mp =1×40.0004 0.0016 0.1266 0.0324

在整体中,前两个预测因子不是很重要。

估计Fisher Iris数据中所有变量的预测重要性对于树木包含替代分裂的合奏。

load Fisher's iris data set.

加载fisheriris

使用adaboostm2种植100棵分类树的合奏。将树树桩指定为弱学习者,并确定替代分裂。

t=Templatetree(('MaxNumSplits',,,,1,,,,“代理”,,,,'上');ens = fitCensemble(MES,物种,'方法',,,,'adaboostm2',,,,“学习者”,t);

估计所有预测变量的相关性的预测重要性和预测度量。

[[一世mp,ma] = predictorImportance(ens)
一世mp =1×40。0674 0.0417 0.1582 0.1537
ma =4×41。00000000。0115 1.0000 0.0022 0.0054 0.3186 0.2137 1.0000 0.6391 0.0392 0.0073 0.1137 1.0000

前两个预测因子比分析更重要估计预测指标的重要性

更多关于

expand all

一个lgorithms

元素ma(i,j)是在预测器上对替代分裂平均的关联的预测度量jfor which predictor一世是最佳的拆分预测变量。通过求和预测器上的最佳分割的相关性预测度量的正值来计算该平均值一世并在预测器上替代拆分jand dividing by the total number of optimal splits on predictor一世,包括拆分预测指标之间关联的预测度量一世andj负面。

扩展功能