# BDT performance vs number of trees

**URL:** <https://root-forum.cern.ch/t/bdt-performance-vs-number-of-trees/53984>\
**Category:** TMVA\
**Created:** [March 11, 2023, 11:31am UTC](https://root-forum.cern.ch/t/bdt-performance-vs-number-of-trees/53984 "2023-03-11T11:31:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RISHABH\_RATURI1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rishabh_raturi1/32/21523_2.png) [@RISHABH\_RATURI1](https://root-forum.cern.ch/u/RISHABH_RATURI1)\
**Post date:** [March 11, 2023, 11:31am UTC](https://root-forum.cern.ch/t/bdt-performance-vs-number-of-trees/53984/1 "2023-03-11T11:31:54Z")

</div>

Hello,

I want to plot the BDT performance vs #Trees just like mentioned in slide 60 in [1]. The plot looks like they are generated through TMVA but I’m not able to figure out how one can do that. TMVAGui shows no such option, so therefore asked here. Thanks in advance!

[1] [https://indico.cern.ch/event/297180/contributions/1655947/attachments/557729/768436/LHCbMVA.pdf](https://indico.cern.ch/event/297180/contributions/1655947/attachments/557729/768436/LHCbMVA.pdf)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 13, 2023, 7:26am UTC](https://root-forum.cern.ch/t/bdt-performance-vs-number-of-trees/53984/2 "2023-03-13T07:26:07Z")

</div>

I guess @moneta might know.

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [March 13, 2023, 1:53pm UTC](https://root-forum.cern.ch/t/bdt-performance-vs-number-of-trees/53984/3 "2023-03-13T13:53:57Z")

</div>

Hi,  
I don’t know exactly as this plot is done, but the simplest thing is that you perform a scan of the hyper-parameter #Trees.  
TMVA has a way to scan the parameter value, using [`MethodBase::OptimizeTuningParameters`](https://root.cern.ch/doc/master/classTMVA_1_1MethodBase.html#ab279cf1f02ead95fabe4fedd686728e7). If you need I can try to provide you an example,

Lorenzo

---

<div class="post-metadata">

**Author:** ![RISHABH\_RATURI1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rishabh_raturi1/32/21523_2.png) [@RISHABH\_RATURI1](https://root-forum.cern.ch/u/RISHABH_RATURI1)\
**Post date:** [March 13, 2023, 2:45pm UTC](https://root-forum.cern.ch/t/bdt-performance-vs-number-of-trees/53984/4 "2023-03-13T14:45:46Z")

</div>

Hello @moneta,

an example would be very helpful, thanks!
