# Gradient Boost BDT: Decision or regression trees?

**URL:** <https://root-forum.cern.ch/t/gradient-boost-bdt-decision-or-regression-trees/57945>\
**Category:** TMVA\
**Created:** [January 24, 2024, 9:09am UTC](https://root-forum.cern.ch/t/gradient-boost-bdt-decision-or-regression-trees/57945 "2024-01-24T09:09:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanEric](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/janeric/32/29559_2.png) [@JanEric](https://root-forum.cern.ch/u/JanEric)\
**Post date:** [January 24, 2024, 9:09am UTC](https://root-forum.cern.ch/t/gradient-boost-bdt-decision-or-regression-trees/57945/1 "2024-01-24T09:09:49Z")

</div>

Hi,

i am currently reading the [TMVA User Guide](https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf) and have a question regarding the gradient boosting of BDTs.

In a gradient boosted BDT, are the individual trees that make up the final BDT actual decision trees or are they regression trees in there. I am particularly unsure because of this sentence on page 68:

> This is done by calculating the current gradient of the loss function and then growing a **regression tree** whose leaf values are adjusted to match the mean value of the gradient in each region defined by the tree structure. Iterating this procedure yields the desired set of **decision trees** which minimises the loss function.

Looking at the [code](https://root.cern/doc/master/MethodBDT_8cxx_source.html#l01594) I also could not find a clear indication whether each individual tree only has output of ±1 (decision tree) or if any value in between is also possible (decision tree).

Cheers  
Jan-Eric

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 24, 2024, 9:11am UTC](https://root-forum.cern.ch/t/gradient-boost-bdt-decision-or-regression-trees/57945/2 "2024-01-24T09:11:38Z")

</div>

Maybe @moneta can help

---

<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:** [January 24, 2024, 1:53pm UTC](https://root-forum.cern.ch/t/gradient-boost-bdt-decision-or-regression-trees/57945/3 "2024-01-24T13:53:26Z")

</div>

Hello

In TMVA Gradient Boosted BDT can be used both in classification problem (decision trees) or regression.

Cheers

Lorenzo

---

<div class="post-metadata">

**Author:** ![JanEric](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/janeric/32/29559_2.png) [@JanEric](https://root-forum.cern.ch/u/JanEric)\
**Post date:** [January 24, 2024, 3:19pm UTC](https://root-forum.cern.ch/t/gradient-boost-bdt-decision-or-regression-trees/57945/4 "2024-01-24T15:19:41Z")

</div>

Hi Lorenzo,

thanks for the quick reply. We are training BDTs for classification, meaning that for the training input every event is labeled as either signal or background.

Obviously, the resulting final BDT score for any event can end up anywhere from -1 to 1. I was just wondering of in this case all of the individual tree in the BDT are decision tree or if they are regression tree regardless when using gradient boosting. I was just a bit confused because of the explicit mention of _regression trees_ directly followed by the general _decision tree_ term.

Cheers  
Jan-Eric
