# TMVA

**URL:** https://root-forum.cern.ch/c/tmva/22.md?page=13

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

**Page:** 14

---

## [Fisher discriminant TMVA](https://root-forum.cern.ch/t/fisher-discriminant-tmva/36097)

<div class="topic-metadata">

**Author:** [@Ale\_olomorfo](https://root-forum.cern.ch/u/Ale_olomorfo)\
**Replies:** 3\
**Last updated:** [September 24, 2019, 5:08pm UTC](https://root-forum.cern.ch/t/fisher-discriminant-tmva/36097 "2019-09-24T17:08:02Z")

</div>

Hello everybody! I have a question which is a mixture of programming and statistics. I have a program which generates events from two bidimensional gaussian, one is the signal, the other the background. I need to perfo…

---

## [Accessing and adding variables of trees](https://root-forum.cern.ch/t/accessing-and-adding-variables-of-trees/36122)

<div class="topic-metadata">

**Author:** [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Replies:** 3\
**Last updated:** [September 24, 2019, 5:05pm UTC](https://root-forum.cern.ch/t/accessing-and-adding-variables-of-trees/36122 "2019-09-24T17:05:24Z")

</div>

Hi, I have input root file as its tree and branches look like when I type the commands as: TFile \*\_file0 = TFile::Open("./Bs2KK\_MC2017\_36.root") TTree \*T = (TTree\*)\_file0-\>Get("T1") T-\>Print() \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Compiling problem TMVA](https://root-forum.cern.ch/t/compiling-problem-tmva/36085)

<div class="topic-metadata">

**Author:** [@Ale\_olomorfo](https://root-forum.cern.ch/u/Ale_olomorfo)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 11:18am UTC](https://root-forum.cern.ch/t/compiling-problem-tmva/36085 "2019-09-19T11:18:34Z")

</div>

Hello everybody! I am writing a code using TMVA and when I compile with the following line: c++ -o Es\_7 Es\_7.cpp \`root-config --cflags --glibs\` -lTMVA I get: /usr/bin/ld: warning: libblas.so.3, needed by /home/alessa…

---

## [Use TMVA to make a ROOT macro?](https://root-forum.cern.ch/t/use-tmva-to-make-a-root-macro/36026)

<div class="topic-metadata">

**Author:** [@Skip](https://root-forum.cern.ch/u/Skip)\
**Replies:** 2\
**Last updated:** [September 16, 2019, 4:30pm UTC](https://root-forum.cern.ch/t/use-tmva-to-make-a-root-macro/36026 "2019-09-16T16:30:12Z")

</div>

I’m fairly new to the whole ML world and somewhat of a novice coder, so I hope this question isn’t too basic for here. I’ve made a simple, multilayer perceptron in Python for a metric that I’d like to be able to call in …

---

## [Plotting distributions of input variables for a specific final state particle](https://root-forum.cern.ch/t/plotting-distributions-of-input-variables-for-a-specific-final-state-particle/33753)

<div class="topic-metadata">

**Author:** [@Saumyenk](https://root-forum.cern.ch/u/Saumyenk)\
**Replies:** 9\
**Last updated:** [September 10, 2019, 8:02pm UTC](https://root-forum.cern.ch/t/plotting-distributions-of-input-variables-for-a-specific-final-state-particle/33753 "2019-09-10T20:02:49Z")

</div>

Hello, I am new to TMVA and facing some problem in dealing with the input variables. When I am declaring the input variables for example ‘Energy’, and ‘PT’ and running the classification macro, I am getting some distri…

---

## [Change in TMVA::BDTG results](https://root-forum.cern.ch/t/change-in-tmva-bdtg-results/29268)

<div class="topic-metadata">

**Author:** [@tomiwa](https://root-forum.cern.ch/u/tomiwa)\
**Replies:** 8\
**Last updated:** [September 10, 2019, 6:44pm UTC](https://root-forum.cern.ch/t/change-in-tmva-bdtg-results/29268 "2019-09-10T18:44:35Z")

</div>

Hello All, Please does anyone know why different versions of Root gives different BDT results using same training configuration? I had been training with Root 6.06.02 and I recently moved to Root 6.12.02. I kept the sam…

---

## [TMVA does not work on GPU with ROOT 6.18](https://root-forum.cern.ch/t/tmva-does-not-work-on-gpu-with-root-6-18/35872)

<div class="topic-metadata">

**Author:** [@Hercules\_Jack](https://root-forum.cern.ch/u/Hercules_Jack)\
**Replies:** 2\
**Last updated:** [September 5, 2019, 10:34pm UTC](https://root-forum.cern.ch/t/tmva-does-not-work-on-gpu-with-root-6-18/35872 "2019-09-05T22:34:19Z")

</div>

Hi ROOT experts, I just upgraded ROOT from 6.16 to 6.18. I installed ROOT 6.18 with: /home/testroot/cmake/3.14/bin/cmake -DCMAKE\_INSTALL\_PREFIX=/home/testroot/root/618 …/root-6.18.00 -DCMAKE\_BUILD\_TYPE=RELEASE -Dtmva=…

---

## [TMVA parameter fitting with known function](https://root-forum.cern.ch/t/tmva-parameter-fitting-with-known-function/35562)

<div class="topic-metadata">

**Author:** [@spaceman](https://root-forum.cern.ch/u/spaceman)\
**Replies:** 3\
**Last updated:** [August 19, 2019, 11:35pm UTC](https://root-forum.cern.ch/t/tmva-parameter-fitting-with-known-function/35562 "2019-08-19T23:35:15Z")

</div>

Hi All, Does anyone have an example of ANN regression to extract a set of parameters using a known function? This seems like it would be a popular thing to do but I haven’t found a good example to model off of yet. As…

---

## [ROC curve from the BDT and BDTF models](https://root-forum.cern.ch/t/roc-curve-from-the-bdt-and-bdtf-models/35641)

<div class="topic-metadata">

**Author:** [@dlin](https://root-forum.cern.ch/u/dlin)\
**Replies:** 2\
**Last updated:** [August 19, 2019, 10:13pm UTC](https://root-forum.cern.ch/t/roc-curve-from-the-bdt-and-bdtf-models/35641 "2019-08-19T22:13:32Z")

</div>

Dear TMVA experts, I am learning to use the TMVA package, here is the models (BDT and BDTF) I used: factory -\> BookMethod(dataloader, Types::kBDT, “BDT”, “!H:!V:NTrees=850:MinNodeSize=2.5%:MaxDepth=4:BoostType=AdaBoost…

---

## [Overtraining check with CrossValidation](https://root-forum.cern.ch/t/overtraining-check-with-crossvalidation/35360)

<div class="topic-metadata">

**Author:** [@shu](https://root-forum.cern.ch/u/shu)\
**Replies:** 5\
**Last updated:** [August 15, 2019, 5:46pm UTC](https://root-forum.cern.ch/t/overtraining-check-with-crossvalidation/35360 "2019-08-15T17:46:46Z")

</div>

Dear MVA experts, Now I’m tring to use CrossValidation for some classification work. However, from the output file of the tutorial code here: https://root.cern/doc/master/TMVACrossValidation\_8C.html, I found that the in…

---

## [Writing a tree in one cycle](https://root-forum.cern.ch/t/writing-a-tree-in-one-cycle/35622)

<div class="topic-metadata">

**Author:** [@rgamboa](https://root-forum.cern.ch/u/rgamboa)\
**Replies:** 7\
**Last updated:** [August 15, 2019, 9:55am UTC](https://root-forum.cern.ch/t/writing-a-tree-in-one-cycle/35622 "2019-08-15T09:55:52Z")

</div>

Dear all; I greatly appreciate your help. I would like to fill a tree (CxAODTuple\_Nominal) in a single cycle, to avoid the multiple tree naming scheme that root uses when dealing with large files, since this is producin…

---

## [Read different size of vector using TMVA macro](https://root-forum.cern.ch/t/read-different-size-of-vector-using-tmva-macro/31130)

<div class="topic-metadata">

**Author:** [@Hokyeong](https://root-forum.cern.ch/u/Hokyeong)\
**Replies:** 4\
**Last updated:** [August 14, 2019, 5:47pm UTC](https://root-forum.cern.ch/t/read-different-size-of-vector-using-tmva-macro/31130 "2019-08-14T17:47:16Z")

</div>

Dear experts, I tried modify the TMVAClassification.C macro to analysis for single electron data and I get the following message. : Dataset\[dataset\] : ERROR while preparing training and testing trees: : Dataset\[datas…

---

## [Limiting range of input variables in Multiclass](https://root-forum.cern.ch/t/limiting-range-of-input-variables-in-multiclass/35615)

<div class="topic-metadata">

**Author:** [@gcamacho](https://root-forum.cern.ch/u/gcamacho)\
**Replies:** 2\
**Last updated:** [August 14, 2019, 4:26pm UTC](https://root-forum.cern.ch/t/limiting-range-of-input-variables-in-multiclass/35615 "2019-08-14T16:26:54Z")

</div>

ROOT version: 6.10/09 platform: LxPlus Hi I am trying to limit the range of a certain input variable so that it is not used when the value is outside of this range. I can’t add it as a cut on TCut because I dont read …

---

## [Response Values using Trained TMVACrossValidation\_MLP](https://root-forum.cern.ch/t/response-values-using-trained-tmvacrossvalidation-mlp/35570)

<div class="topic-metadata">

**Author:** [@Unlucky](https://root-forum.cern.ch/u/Unlucky)\
**Replies:** 1\
**Last updated:** [August 13, 2019, 7:59am UTC](https://root-forum.cern.ch/t/response-values-using-trained-tmvacrossvalidation-mlp/35570 "2019-08-13T07:59:00Z")

</div>

Hi, I’ve been using different TMVA models with my data and found really good signal efficiencies and background efficiencies using a MLP neural network using TMVACrossValidation. However the code below errors when reade…

---

## [Is ROOT TMVA supporting Recurrent/Convolution Neural Network?](https://root-forum.cern.ch/t/is-root-tmva-supporting-recurrent-convolution-neural-network/35526)

<div class="topic-metadata">

**Author:** [@wellatiger](https://root-forum.cern.ch/u/wellatiger)\
**Replies:** 3\
**Last updated:** [August 7, 2019, 2:48pm UTC](https://root-forum.cern.ch/t/is-root-tmva-supporting-recurrent-convolution-neural-network/35526 "2019-08-07T14:48:30Z")

</div>

Hello all, Is ROOT TMVA supporting Recurrent/LSTM/Convolution Neural Network? Thank you,

---

## [Signal peaking on the wrong side?](https://root-forum.cern.ch/t/signal-peaking-on-the-wrong-side/35223)

<div class="topic-metadata">

**Author:** [@fiorini](https://root-forum.cern.ch/u/fiorini)\
**Replies:** 10\
**Last updated:** [July 31, 2019, 11:28am UTC](https://root-forum.cern.ch/t/signal-peaking-on-the-wrong-side/35223 "2019-07-31T11:28:41Z")

</div>

Hello, I switched from ROOT 6.08 to 6.16 and I found a strange “feature” when training with BDT Gradient: The signal accumulated on the negative side of the score distribution, instead of the positive one. I checked t…

---

## [Using 'nohup' or 'screen' for compiling TMVA file](https://root-forum.cern.ch/t/using-nohup-or-screen-for-compiling-tmva-file/35321)

<div class="topic-metadata">

**Author:** [@psiddire](https://root-forum.cern.ch/u/psiddire)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 9:15am UTC](https://root-forum.cern.ch/t/using-nohup-or-screen-for-compiling-tmva-file/35321 "2019-07-24T09:15:02Z")

</div>

I am trying to compile my TMVA file which I usually just to do with “root TMVAFileName.c”. But, I am trying to run it in the background using either nohup or screen and both are failing. With ‘nohup’ I am getting: “ign…

---

## [TMVA CNN crashes after giving very small loss on both training and validation data](https://root-forum.cern.ch/t/tmva-cnn-crashes-after-giving-very-small-loss-on-both-training-and-validation-data/35224)

<div class="topic-metadata">

**Author:** [@Hercules\_Jack](https://root-forum.cern.ch/u/Hercules_Jack)\
**Replies:** 3\
**Last updated:** [July 23, 2019, 1:14pm UTC](https://root-forum.cern.ch/t/tmva-cnn-crashes-after-giving-very-small-loss-on-both-training-and-validation-data/35224 "2019-07-23T13:14:56Z")

</div>

Hi ROOT experts, I encountered the following issue when training TMVA CNN. At some point, both training and validation loss suddenly become very small, which then leads to a crash: If necessary, I can try to prepare …

---

## [Change path to weights directory](https://root-forum.cern.ch/t/change-path-to-weights-directory/35212)

<div class="topic-metadata">

**Author:** [@JuliaIturbe](https://root-forum.cern.ch/u/JuliaIturbe)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 1:42pm UTC](https://root-forum.cern.ch/t/change-path-to-weights-directory/35212 "2019-07-19T13:42:14Z")

</div>

Hello experts, I wonder if there is a way to change the path where the weight files are stored after training. It’s my understanding that these files will be saved in the $PWD/dataloader name/weights/ directory but my …

---

## [Root terminal keeps disappearing on windows](https://root-forum.cern.ch/t/root-terminal-keeps-disappearing-on-windows/35106)

<div class="topic-metadata">

**Author:** [@Choma\_Joshua](https://root-forum.cern.ch/u/Choma_Joshua)\
**Replies:** 12\
**Last updated:** [July 11, 2019, 12:30pm UTC](https://root-forum.cern.ch/t/root-terminal-keeps-disappearing-on-windows/35106 "2019-07-11T12:30:38Z")

</div>

Hello My terminal keeps disappearing on windows when running a TMVA script. I would appreciate some assistance as I am new to root. LowCuts.C (19.9 KB)

---

## [Increase number of folds for TMVACrossValidation](https://root-forum.cern.ch/t/increase-number-of-folds-for-tmvacrossvalidation/34951)

<div class="topic-metadata">

**Author:** [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Replies:** 3\
**Last updated:** [July 3, 2019, 6:44am UTC](https://root-forum.cern.ch/t/increase-number-of-folds-for-tmvacrossvalidation/34951 "2019-07-03T06:44:51Z")

</div>

Hi, I’m checking the TMVACrossValidation with the example code in tutorial/tmva. The output results is Summary for method BDT Fold 0: ROC int: 0.968758, BkgEff@SigEff=0.3: 0.976 Fold 1: ROC int: 0.965505, BkgEff@Sig…

---

## [BDT with different cuts for different eras](https://root-forum.cern.ch/t/bdt-with-different-cuts-for-different-eras/34934)

<div class="topic-metadata">

**Author:** [@piedra](https://root-forum.cern.ch/u/piedra)\
**Replies:** 2\
**Last updated:** [July 1, 2019, 2:34pm UTC](https://root-forum.cern.ch/t/bdt-with-different-cuts-for-different-eras/34934 "2019-07-01T14:34:19Z")

</div>

Hi. In our analysis we have simulated the signal (and the background) for different (2016, 2017 and 2018) LHC eras. For each LHC era we have a set of signal and background files. We would like to know if a given cut can…

---

## [BDT Results Changing Depending on the Order They are Added to the dataloader](https://root-forum.cern.ch/t/bdt-results-changing-depending-on-the-order-they-are-added-to-the-dataloader/34881)

<div class="topic-metadata">

**Author:** [@LaurenC](https://root-forum.cern.ch/u/LaurenC)\
**Replies:** 5\
**Last updated:** [June 28, 2019, 10:57am UTC](https://root-forum.cern.ch/t/bdt-results-changing-depending-on-the-order-they-are-added-to-the-dataloader/34881 "2019-06-28T10:57:32Z")

</div>

Hi all, I am having problems with the new dataloader in TMVA. I have 4 files (signal training file, signal test file, background training file and background test file) which I want to use as inputs for a BDT MVA with …

---

## [X-axis range of input variable is not matched from sample data](https://root-forum.cern.ch/t/x-axis-range-of-input-variable-is-not-matched-from-sample-data/34865)

<div class="topic-metadata">

**Author:** [@Hokyeong](https://root-forum.cern.ch/u/Hokyeong)\
**Replies:** 3\
**Last updated:** [June 28, 2019, 10:53am UTC](https://root-forum.cern.ch/t/x-axis-range-of-input-variable-is-not-matched-from-sample-data/34865 "2019-06-28T10:53:47Z")

</div>

Dear experts, The figure below shows the signal and background distribution of the “isolation value” drawn directly from the sample \[1\], \[2\]. I train the classifier using isolation value and got the TMVA output fil…

---

## [How to set ResNet50 structure with cnn of TMVA](https://root-forum.cern.ch/t/how-to-set-resnet50-structure-with-cnn-of-tmva/34748)

<div class="topic-metadata">

**Author:** [@siguang](https://root-forum.cern.ch/u/siguang)\
**Replies:** 2\
**Last updated:** [June 24, 2019, 3:58pm UTC](https://root-forum.cern.ch/t/how-to-set-resnet50-structure-with-cnn-of-tmva/34748 "2019-06-24T15:58:09Z")

</div>

Structure of ResNet50 or ResNet152 is so powerful than the flat cnn, can someone give an example to use TMVA or other root code (better with c++) to set up the same cnn structure as ResNet? Thanks in advance! Best Regar…

---

## [Input variables decorrelation and building time](https://root-forum.cern.ch/t/input-variables-decorrelation-and-building-time/34736)

<div class="topic-metadata">

**Author:** [@mcalvo](https://root-forum.cern.ch/u/mcalvo)\
**Replies:** 1\
**Last updated:** [June 21, 2019, 2:14pm UTC](https://root-forum.cern.ch/t/input-variables-decorrelation-and-building-time/34736 "2019-06-21T14:14:15Z")

</div>

Hello, I’ve found a ‘feature’ or issue when applying a decorrelation to the input variables of a TMVA MLP. If I set the “VarTransform” to “G,P,N” or “G,D,N” the size of the generated TMVA\_MLP.C file increases to around …

---

## [Kolmogorov-Smirnov test values](https://root-forum.cern.ch/t/kolmogorov-smirnov-test-values/32868)

<div class="topic-metadata">

**Author:** [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Replies:** 7\
**Last updated:** [June 20, 2019, 11:59am UTC](https://root-forum.cern.ch/t/kolmogorov-smirnov-test-values/32868 "2019-06-20T11:59:40Z")

</div>

Dear TMVA users, I have a very quick question regarding the KS test used to check for overtraining. I have been using the BDT method with the following number of events: Signal – training events : 21889 …

---

## [Does TMVA currently support using multiple GPUs?](https://root-forum.cern.ch/t/does-tmva-currently-support-using-multiple-gpus/34623)

<div class="topic-metadata">

**Author:** [@Hercules\_Jack](https://root-forum.cern.ch/u/Hercules_Jack)\
**Replies:** 1\
**Last updated:** [June 15, 2019, 10:39am UTC](https://root-forum.cern.ch/t/does-tmva-currently-support-using-multiple-gpus/34623 "2019-06-15T10:39:50Z")

</div>

Hi Root experts, I have a server with two Nvidia GPUs, but now I can only use one of them to train. Is it currently possible to run TMVA on multiple GPUs?

---

## [How can I change the default figure of merit?](https://root-forum.cern.ch/t/how-can-i-change-the-default-figure-of-merit/34589)

<div class="topic-metadata">

**Author:** [@lx\_mantou](https://root-forum.cern.ch/u/lx_mantou)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 6:50pm UTC](https://root-forum.cern.ch/t/how-can-i-change-the-default-figure-of-merit/34589 "2019-06-14T18:50:11Z")

</div>

Hi, ROOT experts! When I have done the training work and got the figure of ‘Cut efficiencies and Optimized Cut Value’, I just wander how I can change the default figure of merit S/sqrt(S+B) to Punzi figure of merit sign…

---

## [Is it possible to skip the correlation computation before CNN training?](https://root-forum.cern.ch/t/is-it-possible-to-skip-the-correlation-computation-before-cnn-training/34593)

<div class="topic-metadata">

**Author:** [@Hercules\_Jack](https://root-forum.cern.ch/u/Hercules_Jack)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 6:09pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-skip-the-correlation-computation-before-cnn-training/34593 "2019-06-14T18:09:39Z")

</div>

Hi, I’m using TMVA::DNN::CNN to train a classifier. My data is some 2×60×60 images. I found that even if I set “Transformations=I” (i.e. identity transformation without decorrelation) , it still computes the 7200×7200 co…

[Previous page](https://root-forum.cern.ch/c/tmva/22.md?page=12)

[Next page](https://root-forum.cern.ch/c/tmva/22.md?page=14)
