# How to Get Regression Tree Control Plots(BDT)?

**URL:** <https://root-forum.cern.ch/t/how-to-get-regression-tree-control-plots-bdt/28182>\
**Category:** TMVA\
**Created:** [March 5, 2018, 1:08pm UTC](https://root-forum.cern.ch/t/how-to-get-regression-tree-control-plots-bdt/28182 "2018-03-05T13:08:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yang\_xiao](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/c67d28/32.png) [@yang\_xiao](https://root-forum.cern.ch/u/yang_xiao)\
**Post date:** [March 5, 2018, 1:08pm UTC](https://root-forum.cern.ch/t/how-to-get-regression-tree-control-plots-bdt/28182/1 "2018-03-05T13:08:02Z")

</div>

Dear Everyone:

I want get these Control plots in my BDTG Regression Training result :

“error fraction vs tree number”  
“Boost weight vs tree”  
“Boost event weights distribution”

but it shows empty in TMVA::TMVARegGui() display panel. not surprisingly, it dosn’t exists inside .root file.

Is there any mistake in my training configuration? or TMVA BDTG Regression method doesn’t support these plot?

Can anyone help me?

Cheers  
Xiao!

 ![YLR)1O%603N%5DPX%60%7B24)Q)X~EO](https://root-forum.cern.ch/uploads/default/original/2X/2/2600568409229f21825d52880b727cdc11301c02.png)

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [March 5, 2018, 1:28pm UTC](https://root-forum.cern.ch/t/how-to-get-regression-tree-control-plots-bdt/28182/2 "2018-03-05T13:28:56Z")

</div>

Hi Xiao!

Did you pass the `DoBoostMonitor` option to your BDT method during training?

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![yang\_xiao](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/c67d28/32.png) [@yang\_xiao](https://root-forum.cern.ch/u/yang_xiao)\
**Post date:** [March 5, 2018, 1:48pm UTC](https://root-forum.cern.ch/t/how-to-get-regression-tree-control-plots-bdt/28182/3 "2018-03-05T13:48:52Z")

</div>

Hi kialbert!

I has passed DoBoostMonitor option to BDT method,

Here is my training configure

```auto
 factory->BookMethod( TMVA::Types::kBDT, "BDTG",  
                              "!H:!V:MinNodeSize="+minNode+"%:DoBoostMonitor=True:NTrees="+nTree+"+:BoostType=Grad:Shrinkage="+Shrinkage+":UseBaggedBoost:GradBaggingFraction=0.6:SeparationType=RegressionVariance:nCuts="+nCuts+":PruneMethod=CostComplexity:PruneStrength=50:MaxDepth="+maxDepth );

```

Cheers,  
Xiao

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [March 5, 2018, 2:22pm UTC](https://root-forum.cern.ch/t/how-to-get-regression-tree-control-plots-bdt/28182/4 "2018-03-05T14:22:00Z")

</div>

Hi Xiao,

It turns out that `DoBoostMonitoring` is not supported for regression with BDT’s.

Cheers,  
Kim
