# Question about root TMVA

**URL:** <https://root-forum.cern.ch/t/question-about-root-tmva/60439>\
**Category:** TMVA\
**Tags:** root\
**Created:** [August 7, 2024, 8:13am UTC](https://root-forum.cern.ch/t/question-about-root-tmva/60439 "2024-08-07T08:13:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TField](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tfield/32/36014_2.png) [@TField](https://root-forum.cern.ch/u/TField)\
**Post date:** [August 7, 2024, 8:13am UTC](https://root-forum.cern.ch/t/question-about-root-tmva/60439/1 "2024-08-07T08:13:52Z")

</div>

For a classifier, I want to put some variables in and train them first , then put some other variables and train, in TMVA ,is there any methods to help to calculate the “two-step” training signal and background effieicency.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [August 7, 2024, 10:41am UTC](https://root-forum.cern.ch/t/question-about-root-tmva/60439/2 "2024-08-07T10:41:29Z")

</div>

Hi,

Thanks for the post.  
Adding in the loop @moneta .

Cheers,  
D

---

<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:** [August 7, 2024, 12:10pm UTC](https://root-forum.cern.ch/t/question-about-root-tmva/60439/3 "2024-08-07T12:10:46Z")

</div>

Hi,  
You can do this in TMVA, you create a `TMVA::DataLoader` class, add first dome variables train and then evaluate the result. Then you create a new DataLoader with the new variables and you trin again and re-evaluate. An example of this is in this code in [`VariableImportance::EvaluateAll`](https://root.cern/doc/master/classTMVA_1_1VariableImportance.html#afeff18b711aabd8e00c2ab418073d9a0).

Lorenzo

---

<div class="post-metadata">

**Author:** ![TField](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tfield/32/36014_2.png) [@TField](https://root-forum.cern.ch/u/TField)\
**Post date:** [August 8, 2024, 9:39am UTC](https://root-forum.cern.ch/t/question-about-root-tmva/60439/4 "2024-08-08T09:39:04Z")

</div>

Thanks , it helps a lot 🙂
