# BDT XML Weights Tags

**URL:** <https://root-forum.cern.ch/t/bdt-xml-weights-tags/38332>\
**Category:** TMVA\
**Created:** [March 9, 2020, 8:08pm UTC](https://root-forum.cern.ch/t/bdt-xml-weights-tags/38332 "2020-03-09T20:08:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Str55](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/str55/32/32911_2.png) [@Str55](https://root-forum.cern.ch/u/Str55)\
**Post date:** [March 9, 2020, 8:08pm UTC](https://root-forum.cern.ch/t/bdt-xml-weights-tags/38332/1 "2020-03-09T20:08:35Z")

</div>

Hi, I had a quick question about what I’m seeing in my XML weights file that gets produced when I make a bdt.  
I’ve been operating under the assumption that the IVar attribute under a node tag will be the index of my input variable the bdt is cutting on (for instance, I have 2 variables, so I expect IVar to be either 0 or 1).  
However, I am also seeing values of -1.  
Clearly I’m misunderstanding what IVar is, and I couldn’t find the answer anywhere else online, so I would greatly appreciate some help.

---

<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:** [March 9, 2020, 9:15pm UTC](https://root-forum.cern.ch/t/bdt-xml-weights-tags/38332/2 "2020-03-09T21:15:15Z")

</div>

Hi,

This is only a quick response, I can have a more in depth look tomorrow. It could be that the -1 encodes that the node is a leaf (and thus should contain an output, not a cut).

Cheers,  
Kim
