# TMVA classifier to tree adder from commandline

**URL:** <https://root-forum.cern.ch/t/tmva-classifier-to-tree-adder-from-commandline/20873>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [March 27, 2016, 11:42am UTC](https://root-forum.cern.ch/t/tmva-classifier-to-tree-adder-from-commandline/20873 "2016-03-27T11:42:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pseyfert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pseyfert/32/12287_2.png) [@pseyfert](https://root-forum.cern.ch/u/pseyfert)\
**Post date:** [March 27, 2016, 11:42am UTC](https://root-forum.cern.ch/t/tmva-classifier-to-tree-adder-from-commandline/20873/1 "2016-03-27T11:42:36Z")

</div>

The idea is that many usages of the TMVA Reader boil down to adding a branch to an existing ntuple. This comes with a perceived overhead to the user that all input variables need to be declared “again” (after they were already defined in the training of the classifiers). Eventually, TMVA checks if the right variables have been added by means of what’s stored in the xml file. Instead of verifying that the user defined the right variables, one can as well just read the variables from the xml file and set up the reader.

The usage comes with as little human input as possible

```auto

```

or

```auto

```

The tool is at the moment a proof of principle and available here:  
[https://github.com/pseyfert/tmva-branch-adder](https://github.com/pseyfert/tmva-branch-adder)

---

<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:** [April 5, 2016, 8:55am UTC](https://root-forum.cern.ch/t/tmva-classifier-to-tree-adder-from-commandline/20873/2 "2016-04-05T08:55:38Z")

</div>

Hi,  
Thank you very much for the tool. It seems to be something useful. We are in the process of improving TMVA and adding new functionality, we could consider integrating your tool,

Best

Lorenzo

---

<div class="post-metadata">

**Author:** ![leoredi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/5f8ce5/32.png) [@leoredi](https://root-forum.cern.ch/u/leoredi)\
**Post date:** [May 3, 2016, 9:55am UTC](https://root-forum.cern.ch/t/tmva-classifier-to-tree-adder-from-commandline/20873/3 "2016-05-03T09:55:15Z")

</div>

> [@moneta](#):
>
> It seems to be something useful.

A feedback from a dummy user, it is super useful, I have just implemented it in my work flow and it works out of the box.
