# TMVA BDT segmentation violation after "Ranking input variables (method unspecific)..."

**URL:** <https://root-forum.cern.ch/t/tmva-bdt-segmentation-violation-after-ranking-input-variables-method-unspecific/45914>\
**Category:** TMVA\
**Created:** [July 19, 2021, 9:22pm UTC](https://root-forum.cern.ch/t/tmva-bdt-segmentation-violation-after-ranking-input-variables-method-unspecific/45914 "2021-07-19T21:22:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smitmatt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smitmatt/32/26905_2.png) [@smitmatt](https://root-forum.cern.ch/u/smitmatt)\
**Post date:** [July 19, 2021, 9:22pm UTC](https://root-forum.cern.ch/t/tmva-bdt-segmentation-violation-after-ranking-input-variables-method-unspecific/45914/1 "2021-07-19T21:22:44Z")

</div>

Hello,

I am running into a strange error when trying to run my BDT classifier. I am completely unsure of the cause. The method seems to work perfectly until reaching the point of  
" : Ranking input variables (method unspecific)…  
Factory : Train method: BDT for Classification"

There is also an interesting thing that happens where if i use larger files for the input, the segmentation violation occurs after preparing the gaussian transform instead. This made me think the error was related to RAM usage, however the files i am using only 3.8 and 3.5 mbs for the signal/background root files.

Please find attached the code error code. IF this provides no information on what is happening i could also provide the code, although it is rather long so i will need to cut it down to only the relevent portions.

 ![Screen Shot 2021-07-19 at 5.15.03 PM](https://root-forum.cern.ch/uploads/default/original/3X/b/b/bbba175fe4ba7bbaea188ff41d96ce4b40da4b83.png)

Thanks in advance!

---

<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:** [July 21, 2021, 1:26pm UTC](https://root-forum.cern.ch/t/tmva-bdt-segmentation-violation-after-ranking-input-variables-method-unspecific/45914/2 "2021-07-21T13:26:31Z")

</div>

Hi,  
I would need your macro and your data file to reproduce your problem, with the screen shot I cannot understand what exactly is the cause of the crash

Lorenzo

---

<div class="post-metadata">

**Author:** ![smitmatt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smitmatt/32/26905_2.png) [@smitmatt](https://root-forum.cern.ch/u/smitmatt)\
**Post date:** [July 21, 2021, 9:24pm UTC](https://root-forum.cern.ch/t/tmva-bdt-segmentation-violation-after-ranking-input-variables-method-unspecific/45914/3 "2021-07-21T21:24:14Z")

</div>

Hello,

I actually was able to find what was causing this error. If i put a path to and the desired folder name instead of just the folder name for my TMVA::DataLoader, (highlighted as “inputs.ResultsFolder” below) Then i got the segmentation fault.

![Screen Shot 2021-07-21 at 5.18.50 PM](https://root-forum.cern.ch/uploads/default/original/3X/5/7/57cf4135f5e07e634d19cd972a6269600b5b8b1c.png)

Would you know if this is a known characteristic? Perhaps i was doing something wrong and shortening my folder name to simply being in the working directory inadvertently solved a typo or something? ( although i was getting no “invalid path / folder” messaging)

Cheers

Matt
