# TMVA:X session terminated when plotting input variables (1a)

**URL:** <https://root-forum.cern.ch/t/tmva-x-session-terminated-when-plotting-input-variables-1a/12123>\
**Category:** TMVA\
**Created:** [March 23, 2011, 9:44am UTC](https://root-forum.cern.ch/t/tmva-x-session-terminated-when-plotting-input-variables-1a/12123 "2011-03-23T09:44:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikhi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/9f8e36/32.png) [@erikhi](https://root-forum.cern.ch/u/erikhi)\
**Post date:** [March 23, 2011, 9:44am UTC](https://root-forum.cern.ch/t/tmva-x-session-terminated-when-plotting-input-variables-1a/12123/1 "2011-03-23T09:44:48Z")

</div>

Solved

Hi,  
After training, test and evaluation of a boosted decision tree, when I plot the input variables (1a) my X session is terminated and I am logged out of my computing account.

However it is no problem for any of the other plots.

I have included all the files required to run it. I am running root 5.28 in a standard slc 5 environment at CERN.

Does someone have any idea what the problem could be?

Thank you,

E. Hidle  
[TMVATest.C](https://root-forum.cern.ch/uploads/default/original/2X/2/2ba7bc970dea1f66a6360d07c930e3c4d78a6909.C) (2.28 KB)  
[signal.root](https://root-forum.cern.ch/uploads/default/original/2X/4/4a25d5d9865f6f553d90789a9fce6325496c96ef.root) (260 KB)  
[background.root](https://root-forum.cern.ch/uploads/default/original/2X/d/d7c4b2244872e361f278937bf4b0feba381766f0.root) (29.5 KB)

---

<div class="post-metadata">

**Author:** ![erikhi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/9f8e36/32.png) [@erikhi](https://root-forum.cern.ch/u/erikhi)\
**Post date:** [March 24, 2011, 9:12am UTC](https://root-forum.cern.ch/t/tmva-x-session-terminated-when-plotting-input-variables-1a/12123/2 "2011-03-24T09:12:39Z")

</div>

Ok so I found the problem.

I am creating the TTree with Python.  
When I was writing standard values to the TTree.

I used 0, and 0.0 to give values for integers and floats instead of int(0) and float(0.0).

I did not expect this to have sutch a huge effect, but it now works fine.

---

<div class="post-metadata">

**Author:** ![wlav](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/f07891/32.png) [@wlav](https://root-forum.cern.ch/u/wlav)\
**Post date:** [March 25, 2011, 4:31pm UTC](https://root-forum.cern.ch/t/tmva-x-session-terminated-when-plotting-input-variables-1a/12123/3 "2011-03-25T16:31:11Z")

</div>

Hi,

> [@erikhi](#):
>
> I used 0, and 0.0 to give values for integers and floats instead of int(0) and float(0.0).

there should be no difference between those, unless somehow the address is taken behind the scenes.

Cheers,  
Wim
