# About the BDT control plot and the decision boundary

**URL:** <https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942>\
**Category:** TMVA\
**Created:** [May 8, 2018, 5:52am UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942 "2018-05-08T05:52:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hai\_Jiang1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Post date:** [May 8, 2018, 5:52am UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942/1 "2018-05-08T05:52:15Z")

</div>

Deal all TMVA experts,

I have seen the two visualized functions of Control Plot and Decision Boundary in BDT, but i have searched a lot, seems there is not that many materials related to them, even in the TMVA user guide.

Anyone knows how to interpret the Control Plot(I guess it’s similar to “Parallel Coordinates” in the GUI? But for “Parallel Coordinates” there are so many different color lines I am neither not sure of their meanings… ) to help improve the BDT and also how to get the Decision Boundary plot?

Many thank!  
Hai

---

<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:** [May 10, 2018, 9:06pm UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942/2 "2018-05-10T21:06:03Z")

</div>

Hi,

Where have you seen these plots? 🙂

Parallel coordinates is a way of visualising high-dimensional spaces and makes certain kinds of structure easily identifiable. In TMVA this is provided to visualise correlations between input variables and also output variables.

The control plot gives you information about the boosting process (weights and errors for the different iterations).

The decision boundary plot can be generated with the file `$ROOTSRC/tmva/tmvagui/src/mvaweights.cxx` where $ROOTSRC is the path to the source code of ROOT.

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![Hai\_Jiang1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Post date:** [May 10, 2018, 9:55pm UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942/3 "2018-05-10T21:55:42Z")

</div>

Dear Kim,

Oh I just saw them in the user guide and the TMVA GUI, then tried to interpret them to help us understand what’s happening in the training. But it seems not that easy…  
Thanks for the explanation.

And BTW I have another question on the Kolmogorov-Smirnov test(to estimate the overfitting) and hope you can help me with the print out:

> Testing efficiency compared to training efficiency (overtraining check)  
> — Perform Kolmogorov-Smirnov tests  
> — Goodness of signal (background) consistency: 0.572 (0.047)

I have seen in the slides:

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

 ![WechatIMG1242](https://root-forum.cern.ch/uploads/default/original/3X/6/9/69d127a5e1751d8ee1b636750ea09af6fe593a60.jpeg)  
 ![WechatIMG1241](https://root-forum.cern.ch/uploads/default/original/3X/1/1/119d5c8a020efb12ab0f75a008436cab691eb512.jpeg)

Does it mean that the ideal value of the **Goodness of signal (background) consistency** should be 0.5 for both signal (background) ?

Kind regards,  
Hai

---

<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:** [May 10, 2018, 10:12pm UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942/4 "2018-05-10T22:12:31Z")

</div>

Hi Jiang,

Yes, in principle. You can also check the output classifier distributions with both test and training samples. With this plot you can visually inspect the similarity of the distributions.

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![Hai\_Jiang1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Post date:** [May 10, 2018, 10:28pm UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942/5 "2018-05-10T22:28:40Z")

</div>

Got it. Many thanks for the guidance!

–Hai

---

<div class="post-metadata">

**Author:** ![Hai\_Jiang1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Post date:** [May 10, 2018, 10:55pm UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942/6 "2018-05-10T22:55:16Z")

</div>

Actually I have another quick question. I have searched on my local Root directory, it seems that there is only header file.

 ![WechatIMG1243](https://root-forum.cern.ch/uploads/default/original/3X/4/6/466cad089eece39571461ca7ac4a8812417bd8e5.jpeg)

Do you know where we can find the detailed source file of all TMVA methods locally in the ROOT package?(like below, so that it’s convenient to see how the methods are written and then how to optimize them)  
[https://root.cern/doc/master/mvaweights\_8cxx\_source.html](https://root.cern/doc/master/mvaweights_8cxx_source.html)

Best,  
Hai

---

<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:** [May 11, 2018, 12:06pm UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942/7 "2018-05-11T12:06:16Z")

</div>

Hi,

You can check out the git repository code at [http://github.com/root-project/root/](http://github.com/root-project/root/).  
Use `git clone http://github.com/root-project/root/` to download it easily 🙂

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![Hai\_Jiang1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/e99b99/32.png) [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Post date:** [May 11, 2018, 4:00pm UTC](https://root-forum.cern.ch/t/about-the-bdt-control-plot-and-the-decision-boundary/28942/8 "2018-05-11T16:00:03Z")

</div>

Many thanks for the help!

–Hai
