【问题标题】:matlab: treebagger using option 'ComputeOOBVarImp'matlab:使用选项“ComputeOOBVarImp”的treebagger
【发布时间】:2013-02-07 10:24:41
【问题描述】:

我正在尝试使用 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 不在此处。

谁能帮我解决这个问题?非常感谢。

【问题讨论】:

    标签: matlab


    【解决方案1】:

    试试 b.OOBPermutedVarDeltaError

    【讨论】:

      猜你喜欢
      • 2015-12-20
      • 2013-06-18
      • 1970-01-01
      • 2013-10-20
      • 2015-02-02
      • 2016-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多