我试图在Matlab中使用函数Treebagger来评估特性的重要性。
Treebagger帮助文件显示:
COMPUTEOOBVARIMP Flag to compute out-of-bag variable importance.
The ComputeOOBVarImp property is a logical flag specifying whether out-of-bag
estimates of variable importance should be computed. The default is
false. If this flag is true, COMPUTEOOBPREDICTION is true as well.
If this flag is true, the following properties are available:
OOBPermutedVarDeltaError, OOBPermutedVarDeltaMeanMargin,
OOBPermutedVarCountRaiseMargin但是我得到的结果是:
b = treeBagger(20,resultMatrix,runOutputs,'OOBVarImp','on','Method','classification','NVarToSample',10);
>
与20个袋装决策树合奏:
BLOCKQUOTE>
Training X: [4130x308]
Training Y: [4130x1]
Method: classification
Nvars: 308
NVarToSample: 10
MinLeaf: 1