# TMVA

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

[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:** 16

---

## [Using TMVA for the .root files converted from madgraph generated .lhe file](https://root-forum.cern.ch/t/using-tmva-for-the-root-files-converted-from-madgraph-generated-lhe-file/32999)

<div class="topic-metadata">

**Author:** [@atanu54598568](https://root-forum.cern.ch/u/atanu54598568)\
**Replies:** 10\
**Last updated:** [March 8, 2019, 8:43pm UTC](https://root-forum.cern.ch/t/using-tmva-for-the-root-files-converted-from-madgraph-generated-lhe-file/32999 "2019-03-08T20:43:28Z")

</div>

Hi, I am new here regarding using TMVA and root as well. I have specific background process and a signal, generated using madgraph. I converted the .lhe files as .root files. Also I am able to generate the desired histo…

---

## [Definition of vector in python to call TMVA functions](https://root-forum.cern.ch/t/definition-of-vector-in-python-to-call-tmva-functions/32961)

<div class="topic-metadata">

**Author:** [@Delegido](https://root-forum.cern.ch/u/Delegido)\
**Replies:** 5\
**Last updated:** [March 6, 2019, 1:05pm UTC](https://root-forum.cern.ch/t/definition-of-vector-in-python-to-call-tmva-functions/32961 "2019-03-06T13:05:44Z")

</div>

Hello, I’m trying to run TMVA on my python code but I’m having some problems when sending arguments to TMVA functions because of the definition of the variables. When I write dataloader.AddSignalTestEvent(tvars,event.wei…

---

## [Using arrays of variable length in TMVA BDT](https://root-forum.cern.ch/t/using-arrays-of-variable-length-in-tmva-bdt/32873)

<div class="topic-metadata">

**Author:** [@cmiller](https://root-forum.cern.ch/u/cmiller)\
**Replies:** 1\
**Last updated:** [February 26, 2019, 9:20am UTC](https://root-forum.cern.ch/t/using-arrays-of-variable-length-in-tmva-bdt/32873 "2019-02-26T09:20:51Z")

</div>

In my ntuples I have a variable that varies by event. Int\_t Nneu Float\_t NeuEnergy\[10\] \\\\\[nNeu\] Where the max size of NeuEnergy is 10 but can be anywhere from 0 to 10 on an event by event basis. Is there a way to add …

---

## [Building ROOT with tests](https://root-forum.cern.ch/t/building-root-with-tests/28515)

<div class="topic-metadata">

**Author:** [@ravikiran0606](https://root-forum.cern.ch/u/ravikiran0606)\
**Replies:** 7\
**Last updated:** [February 23, 2019, 9:18am UTC](https://root-forum.cern.ch/t/building-root-with-tests/28515 "2019-02-23T09:18:36Z")

</div>

Hello everyone, I need some help regarding building tests for tmvadnn/root project. I am trying to solve the tasks given for GSoC’18. I am able to build the project from source. But I am not able to run tests for the pr…

---

## [Method kDL in TMVA](https://root-forum.cern.ch/t/method-kdl-in-tmva/32863)

<div class="topic-metadata">

**Author:** [@behrenhoff](https://root-forum.cern.ch/u/behrenhoff)\
**Replies:** 2\
**Last updated:** [February 22, 2019, 7:21pm UTC](https://root-forum.cern.ch/t/method-kdl-in-tmva/32863 "2019-02-22T19:21:35Z")

</div>

I have been playing with the new kDL method as suggested by Lorenzo @moneta some time ago. So far, I’ve got a couple of questions/comments: a) is DropConfig no longer a suggested way to improve the DL? The setting is r…

---

## [Weighting in a TMVA BDT](https://root-forum.cern.ch/t/weighting-in-a-tmva-bdt/32812)

<div class="topic-metadata">

**Author:** [@cmiller](https://root-forum.cern.ch/u/cmiller)\
**Replies:** 5\
**Last updated:** [February 22, 2019, 6:28pm UTC](https://root-forum.cern.ch/t/weighting-in-a-tmva-bdt/32812 "2019-02-22T18:28:00Z")

</div>

I’m just starting out using the TMVA package in root and my results seem too good, and I’m wondering if I need to use weighting. TTree \*signal = (TTree\*)input-\>Get("sig"); TTree \*background = (TTree\*)input-\>Get("bkg"); …

---

## [Access signal (background) likelihood per-event](https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799)

<div class="topic-metadata">

**Author:** [@mmilesi](https://root-forum.cern.ch/u/mmilesi)\
**Replies:** 4\
**Last updated:** [February 22, 2019, 6:02pm UTC](https://root-forum.cern.ch/t/access-signal-background-likelihood-per-event/32799 "2019-02-22T18:02:26Z")

</div>

Hello, apologies if this has been answered somewhere else. As far as I am aware, the TMVA Likelihood method(s) Reader interface gives access only to the per-event likelihood ratio (L\_s /( L\_s+L\_b)) in the application s…

---

## [Info about two different training](https://root-forum.cern.ch/t/info-about-two-different-training/31594)

<div class="topic-metadata">

**Author:** [@moricciani](https://root-forum.cern.ch/u/moricciani)\
**Replies:** 7\
**Last updated:** [February 22, 2019, 4:36pm UTC](https://root-forum.cern.ch/t/info-about-two-different-training/31594 "2019-02-22T16:36:41Z")

</div>

Hi, I try TMVAClassification with two Prepare…: sprintf(Stringa,“nTrain\_Signal=%d:nTrain\_Background=%d:nTest\_Signal=0:nTest\_Background=0:SplitMode=Random:NormMode=NumEvents:!V”, nTrainSVar, nTrainBVar); dataloader-\>Pr…

---

## [Modelling Systematic Uncertainties](https://root-forum.cern.ch/t/modelling-systematic-uncertainties/32788)

<div class="topic-metadata">

**Author:** [@aelmouss](https://root-forum.cern.ch/u/aelmouss)\
**Replies:** 3\
**Last updated:** [February 18, 2019, 6:53pm UTC](https://root-forum.cern.ch/t/modelling-systematic-uncertainties/32788 "2019-02-18T18:53:21Z")

</div>

Hi all, please I need some help! I would like to see a distribution of MCEventWeight\_MC14, but I find only something wrong like this in the picture? I do not know exactly if this error means I’m missing something in th…

---

## [\-Dtmva=OFF in master?](https://root-forum.cern.ch/t/dtmva-off-in-master/32765)

<div class="topic-metadata">

**Author:** [@Reik](https://root-forum.cern.ch/u/Reik)\
**Replies:** 10\
**Last updated:** [February 18, 2019, 4:37pm UTC](https://root-forum.cern.ch/t/dtmva-off-in-master/32765 "2019-02-18T16:37:54Z")

</div>

In the master branch, althought the tmva flag is ON by default, unless I set the tmva flag to ON manually(-Dtmva=ON), the tmva conditional blocks in https://github.com/root-project/root/blob/master/cmake/modules/SearchIn…

---

## [Specify the number of entries for a category in kCategory](https://root-forum.cern.ch/t/specify-the-number-of-entries-for-a-category-in-kcategory/32702)

<div class="topic-metadata">

**Author:** [@ipapakri](https://root-forum.cern.ch/u/ipapakri)\
**Replies:** 1\
**Last updated:** [February 14, 2019, 1:24pm UTC](https://root-forum.cern.ch/t/specify-the-number-of-entries-for-a-category-in-kcategory/32702 "2019-02-14T13:24:38Z")

</div>

Dear ROOT experts, I am using the kCategory method for my training. Since I have a large sample I do not want all my events to be used for the training so I tried passing in the dataloader something like the following: …

---

## [TMVAGui() not working for multiple methods of BDT in file](https://root-forum.cern.ch/t/tmvagui-not-working-for-multiple-methods-of-bdt-in-file/32267)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 5\
**Last updated:** [February 8, 2019, 2:19pm UTC](https://root-forum.cern.ch/t/tmvagui-not-working-for-multiple-methods-of-bdt-in-file/32267 "2019-02-08T14:19:25Z")

</div>

This relates to another post where I didn’t receive a satisfactory answer. I create the following file MVAAllUpdate.C (14.0 KB) containing the results of training training and multiple TMVA methods. When I then do TMVA:…

---

## [About BDT option UseBaggedBoost and BaggedSampleFraction](https://root-forum.cern.ch/t/about-bdt-option-usebaggedboost-and-baggedsamplefraction/32159)

<div class="topic-metadata">

**Author:** [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Replies:** 9\
**Last updated:** [February 2, 2019, 12:25am UTC](https://root-forum.cern.ch/t/about-bdt-option-usebaggedboost-and-baggedsamplefraction/32159 "2019-02-02T00:25:28Z")

</div>

Dear Sir, I have a question about these two option UseBaggedBoost and BaggedSampleFraction with BDT AdaBoost setting. I found the definition of this two option as, UseBaggedBoost: Use only a random subsample of all ev…

---

## [Understanding the normalization setting for and behind the BDT](https://root-forum.cern.ch/t/understanding-the-normalization-setting-for-and-behind-the-bdt/32466)

<div class="topic-metadata">

**Author:** [@Olena](https://root-forum.cern.ch/u/Olena)\
**Replies:** 3\
**Last updated:** [February 1, 2019, 12:19pm UTC](https://root-forum.cern.ch/t/understanding-the-normalization-setting-for-and-behind-the-bdt/32466 "2019-02-01T12:19:33Z")

</div>

Dear All, Setup I train the BDT tree where I have only 1 signal and 1 background category. The training options are set as: ... dataloader-\>SetSignalWeightExpression(signalWeightExpression.data()); dataloader-\>SetSigna…

---

## [About running TMVA on different OS](https://root-forum.cern.ch/t/about-running-tmva-on-different-os/32232)

<div class="topic-metadata">

**Author:** [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Replies:** 9\
**Last updated:** [January 14, 2019, 2:56pm UTC](https://root-forum.cern.ch/t/about-running-tmva-on-different-os/32232 "2019-01-14T14:56:04Z")

</div>

Dear Sir, I had run with TMVA BDT with the configure as NTrees=800:MinNodeSize=2.5%:MaxDepth=4:BoostType=AdaBoost:AdaBoostBeta=0.5:UseBaggedBoost:BaggedSampleFraction=0.5:SeparationType=GiniIndex:nCuts=20 I got differ…

---

## [Tree growing in BDT method](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251)

<div class="topic-metadata">

**Author:** [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Replies:** 5\
**Last updated:** [January 14, 2019, 2:40pm UTC](https://root-forum.cern.ch/t/tree-growing-in-bdt-method/32251 "2019-01-14T14:40:22Z")

</div>

Hello everyone, I have a quick question regarding the growth of multiple decision trees. Assuming that the ‘UsedRandomisedTrees’ is not activated, I am wondering how it is possible that root nodes of different trees usi…

---

## [TMVA::DataLoader output, "Directory for all \<method name\> methods"](https://root-forum.cern.ch/t/tmva-dataloader-output-directory-for-all-method-name-methods/30509)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 5\
**Last updated:** [January 12, 2019, 6:27pm UTC](https://root-forum.cern.ch/t/tmva-dataloader-output-directory-for-all-method-name-methods/30509 "2019-01-12T18:27:17Z")

</div>

Hello, I have a question regarding the description of TMVA output directories labeled as above in quotation in the topic’s titles. The description makes me think that given a single TMVA::DataLoader object I can save mu…

---

## [Overtraining test obtained from TMVA](https://root-forum.cern.ch/t/overtraining-test-obtained-from-tmva/32148)

<div class="topic-metadata">

**Author:** [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Replies:** 2\
**Last updated:** [January 8, 2019, 1:43am UTC](https://root-forum.cern.ch/t/overtraining-test-obtained-from-tmva/32148 "2019-01-08T01:43:50Z")

</div>

Dear Sir, I have a question about the KS test for overtraining check. From this topic, it seems the KS test number should be close to 0.5 to avoid overtraining. In my case the KS test for signal and background is alw…

---

## [TMVA DNN: different result CPU vs GPU](https://root-forum.cern.ch/t/tmva-dnn-different-result-cpu-vs-gpu/31942)

<div class="topic-metadata">

**Author:** [@behrenhoff](https://root-forum.cern.ch/u/behrenhoff)\
**Replies:** 6\
**Last updated:** [December 14, 2018, 3:49pm UTC](https://root-forum.cern.ch/t/tmva-dnn-different-result-cpu-vs-gpu/31942 "2018-12-14T15:49:00Z")

</div>

Dear ROOT team, I am currently working on a TMVA regression training with a DNN. When running the DNN with Architecture=CPU, I get excellent performance (in terms of prediction quality). However, it takes several hours …

---

## [Bug in parsing variable transformations](https://root-forum.cern.ch/t/bug-in-parsing-variable-transformations/31930)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 1\
**Last updated:** [December 8, 2018, 4:24pm UTC](https://root-forum.cern.ch/t/bug-in-parsing-variable-transformations/31930 "2018-12-08T16:24:33Z")

</div>

Hi, I found a bug in declaring variable transformations. In particular the string is parsed incorrectly if the variable has brackets in the name. e.g. dataloader.AddVariable("abs(x)","F") dataloader.AddVariable("y","F…

---

## [Keeping constant target nodes](https://root-forum.cern.ch/t/keeping-constant-target-nodes/31867)

<div class="topic-metadata">

**Author:** [@pversch](https://root-forum.cern.ch/u/pversch)\
**Replies:** 3\
**Last updated:** [December 7, 2018, 4:05pm UTC](https://root-forum.cern.ch/t/keeping-constant-target-nodes/31867 "2018-12-07T16:05:36Z")

</div>

Hi, I am trying to train a MLP with training data that contains the same value for certain target nodes for all training inputs. However, when I try to call the trainallmethods method it says that I have to remove this …

---

## [Segmentation fault with TMVA in ROOT 6.13](https://root-forum.cern.ch/t/segmentation-fault-with-tmva-in-root-6-13/31835)

<div class="topic-metadata">

**Author:** [@tisol](https://root-forum.cern.ch/u/tisol)\
**Replies:** 10\
**Last updated:** [December 5, 2018, 12:22pm UTC](https://root-forum.cern.ch/t/segmentation-fault-with-tmva-in-root-6-13/31835 "2018-12-05T12:22:52Z")

</div>

Hello, I have a segmentation fault problem when running a multivariate classification in 6.13. The algorithm training works without problems, but when it comes to using the trained algorithms to classify new data the pr…

---

## [TMVA::DataLoader::AddEvent() Segmentation Violation](https://root-forum.cern.ch/t/tmva-addevent-segmentation-violation/31764)

<div class="topic-metadata">

**Author:** [@mckea](https://root-forum.cern.ch/u/mckea)\
**Replies:** 2\
**Last updated:** [November 26, 2018, 7:14pm UTC](https://root-forum.cern.ch/t/tmva-addevent-segmentation-violation/31764 "2018-11-26T19:14:52Z")

</div>

Hi! I’m running in some trouble trying to add training and test events by hand into a DataLoader object, following the instructions in the TMVAClassification.C example. Hereby I present a small snippet of code which re…

---

## [nTrain\_, nTest\_ randomly picked in each process sample for N\>1 background processes?](https://root-forum.cern.ch/t/ntrain-ntest-randomly-picked-in-each-process-sample-for-n-1-background-processes/31716)

<div class="topic-metadata">

**Author:** [@mmilesi](https://root-forum.cern.ch/u/mmilesi)\
**Replies:** 2\
**Last updated:** [November 22, 2018, 10:42pm UTC](https://root-forum.cern.ch/t/ntrain-ntest-randomly-picked-in-each-process-sample-for-n-1-background-processes/31716 "2018-11-22T22:42:31Z")

</div>

Hello, say that in a binary classifcation I am adding trees for different processes (i.e., describing different physics processes) to the background sample: dataloader.AddSignalTree(treeS, 1.0) dataloader.AddBackgroun…

---

## [TMVA - Handling of Anomalous Values](https://root-forum.cern.ch/t/tmva-handling-of-anomalous-values/31696)

<div class="topic-metadata">

**Author:** [@iw273](https://root-forum.cern.ch/u/iw273)\
**Replies:** 4\
**Last updated:** [November 22, 2018, 7:57pm UTC](https://root-forum.cern.ch/t/tmva-handling-of-anomalous-values/31696 "2018-11-22T19:57:41Z")

</div>

Dear Experts, I am giving a fixed amount of data to TMVA of which some of the values will be sometimes be missing. The reason for this is I am giving it track information and per event there are a variable number of tra…

---

## [Reduce font size for TMVA Gui correlation matrices?](https://root-forum.cern.ch/t/reduce-font-size-for-tmva-gui-correlation-matrices/31703)

<div class="topic-metadata">

**Author:** [@afray](https://root-forum.cern.ch/u/afray)\
**Replies:** 3\
**Last updated:** [November 22, 2018, 4:15pm UTC](https://root-forum.cern.ch/t/reduce-font-size-for-tmva-gui-correlation-matrices/31703 "2018-11-22T16:15:54Z")

</div>

Hi all, Is there a simple way to reduce the axis label and bin text size on the correlation matrices created by the TMVA Gui? If I train a BDT with a large number of variables, when I plot the variable correlation matri…

---

## [BDTG Multiclass standalone C++ class response](https://root-forum.cern.ch/t/bdtg-multiclass-standalone-c-class-response/31705)

<div class="topic-metadata">

**Author:** [@ljbeemster](https://root-forum.cern.ch/u/ljbeemster)\
**Replies:** 3\
**Last updated:** [November 21, 2018, 8:31pm UTC](https://root-forum.cern.ch/t/bdtg-multiclass-standalone-c-class-response/31705 "2018-11-21T20:31:55Z")

</div>

Hi TMVA experts, The multiclass training of a BDTG method results in a standalone C++ class in the weights directory, but I’m confused how to get a multiclass response using this. The TMVA::Reader has a EvaluateMulticla…

---

## [Setting an output range for a MLP/DNN](https://root-forum.cern.ch/t/setting-an-output-range-for-a-mlp-dnn/31646)

<div class="topic-metadata">

**Author:** [@pversch](https://root-forum.cern.ch/u/pversch)\
**Replies:** 8\
**Last updated:** [November 20, 2018, 11:15am UTC](https://root-forum.cern.ch/t/setting-an-output-range-for-a-mlp-dnn/31646 "2018-11-20T11:15:15Z")

</div>

Hi, I am trying to train a MLP for a regression problem. The targets represent probabilities so I want to add this constraint in such a way that the evaluation only gives output values between 0 and 1. When I added the …

---

## [TMVA with different signal variables from different files](https://root-forum.cern.ch/t/tmva-with-different-signal-variables-from-different-files/31283)

<div class="topic-metadata">

**Author:** [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Replies:** 7\
**Last updated:** [November 15, 2018, 5:40am UTC](https://root-forum.cern.ch/t/tmva-with-different-signal-variables-from-different-files/31283 "2018-11-15T05:40:37Z")

</div>

Dear Sir, I have several variables for TMVA study. I added NLO effect to some of the variables, I wish to train the TMVA with both LO sample variables and NLO sample variables. i.e. variable 1 and 2 come from LO samp…

---

## [Performance of binary projection of Multiclass classifier (BDTG)](https://root-forum.cern.ch/t/performance-of-binary-projection-of-multiclass-classifier-bdtg/31579)

<div class="topic-metadata">

**Author:** [@mmilesi](https://root-forum.cern.ch/u/mmilesi)\
**Replies:** 1\
**Last updated:** [November 14, 2018, 1:37pm UTC](https://root-forum.cern.ch/t/performance-of-binary-projection-of-multiclass-classifier-bdtg/31579 "2018-11-14T13:37:25Z")

</div>

Hi TMVA experts, I am playing around with the TMVAMulticlass analysis mode (disclaimer: I have no experience with it), training a BDTG to separate four classes of events : e, mu, pi, K. If I check the classifier respon…

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

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