matlab:treebagger使用选项'ComputeOOBVarImp'

时间:2012-11-26 23:34:19

标签: matlab

我正在尝试使用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个袋装决策树合奏:

           Training X:           [4130x308]

           Training Y:             [4130x1]

               Method:       classification

                Nvars:                  308

         NVarToSample:                   10

              MinLeaf:                    1

                FBoot:                    1

SampleWithReplacement:                    1

 ComputeOOBPrediction:                    1

     ComputeOOBVarImp:                    1

            Proximity:                   []

           ClassNames:             '0'             '1'

根据我的理解,ComputeOOBVarImp设置为true,但属性OOBPermutedVarDeltaError,OOBPermutedVarDeltaMeanMargin和OOBPermutedVarCountRaiseMargin不在此处。

有人可以帮我解决这个问题吗?非常感谢你。

1 个答案:

答案 0 :(得分:2)

试试b.OOBPermutedVarDeltaError