# Tree growing in BDT method

**URL:** <https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251>\
**Category:** TMVA\
**Created:** [January 10, 2019, 11:23pm UTC](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251 "2019-01-10T23:23:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Einsiedler](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Post date:** [January 10, 2019, 11:23pm UTC](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251/1 "2019-01-10T23:23:48Z")

</div>

Hello everyone,

I have a quick question regarding the growth of multiple decision trees. Assuming that the ‘UsedRandomisedTrees’ is not activated, I am wondering how it is possible that root nodes of different trees using the same variable for splitting use different cut values?  
If this option is not activated, shouldn’t it always be the same full training sample used in all root nodes and therefore, all cut values on the same variables in these root nodes should be the same? I am a bit confused by that aspect.

Thank you in advance or any answer you can provide.

---

<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:** [January 11, 2019, 9:40am UTC](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251/2 "2019-01-11T09:40:51Z")

</div>

Hi,

BDT’s are a stagewise approximation. That is each tree reduces the error between the BDT output and the target function, _and uses the output of the all the previous trees_. Thus the input to the optimisation process is different for each tree iteration, and the cuts are different.

Also, please note that `UseRandomisedTrees` does a subsampling of the _variables_ (implying that if a variable is selected for use, all data samples are used from that variable), meaning that for convergence properties it does not matter whether it is enabled or not (it does increase the randomness of the search though which can lead to better generalisation).

---

<div class="post-metadata">

**Author:** ![Einsiedler](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Post date:** [January 11, 2019, 4:25pm UTC](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251/3 "2019-01-11T16:25:47Z")

</div>

Thank you very much for the clarification. I had indeed forgotten about the very essence of boosting, meaning that misclassified events have more weight in the next trees and that therefore cuts may vary.

Regarding your comment about `UseRandomisedTrees`, does it always take a sub-sample of the training events different for each tree?

---

<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:** [January 12, 2019, 8:19am UTC](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251/4 "2019-01-12T08:19:09Z")

</div>

Hi,

No worries, we’re here to help!

When using randomised trees all events are used. (Variables are selected randomly for eaxh tree though).

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![Einsiedler](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Post date:** [January 13, 2019, 8:49pm UTC](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251/5 "2019-01-13T20:49:13Z")

</div>

Thanks again. But I am a bit confused regarding your statement _“When using randomised trees all events are used.”_ In fact, it says at page 120 of the User Guide [https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf](https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf) that for randomized trees, only a subset (resampled) of the original training events is used.

Cheers,  
Kevin

---

<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:** [January 14, 2019, 2:40pm UTC](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251/6 "2019-01-14T14:40:22Z")

</div>

The manual is a bit unclear on this point and, also outdated (the option `UseNTrainEvents` has been renamed to `BaggedSampleFraction` and requires that the option `UseBaggedBoost` is enabled.)

Thanks for pointing this out to us!

The use of subsampling of variables and a subsampling of events are orthogonal and are controlled by different options. The manual will be updated to reflect this.

Cheers,  
Kim
