# TMVA

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

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

---

## [Does TMVA transform variables for application stage?](https://root-forum.cern.ch/t/does-tmva-transform-variables-for-application-stage/27798)

<div class="topic-metadata">

**Author:** [@Jiwon](https://root-forum.cern.ch/u/Jiwon)\
**Replies:** 2\
**Last updated:** [February 7, 2018, 5:09pm UTC](https://root-forum.cern.ch/t/does-tmva-transform-variables-for-application-stage/27798 "2018-02-07T17:09:08Z")

</div>

Hi all, I found that BDT response shape is distorted severely in application stage ( reader.BookMVA() and then reader.EvaluateMVA() ) compared to the output histograms from TMVAGui, once I introduce several variable tra…

---

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

<div class="topic-metadata">

**Author:** [@Geo](https://root-forum.cern.ch/u/Geo)\
**Replies:** 4\
**Last updated:** [February 1, 2018, 2:20pm UTC](https://root-forum.cern.ch/t/kolmogorov-smirnov-test/27765 "2018-02-01T14:20:34Z")

</div>

Hello, I have one question wrt the interpretation of the K-S test. First of all, as I understood from reading online, it is a test that determines if the two samples come from the same parent distribution. What does tha…

---

## [Classification application: unknown classifier in map](https://root-forum.cern.ch/t/classification-application-unknown-classifier-in-map/27669)

<div class="topic-metadata">

**Author:** [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Replies:** 4\
**Last updated:** [January 26, 2018, 11:59am UTC](https://root-forum.cern.ch/t/classification-application-unknown-classifier-in-map/27669 "2018-01-26T11:59:42Z")

</div>

Dear TMVA users, I’m having a bit of an issue with the TMVAClassificationApplication.C script. After doing the training and testing with the TMVAClassification.C using the BDT method, I properly generate the .xml file.…

---

## [TMVA variables - events](https://root-forum.cern.ch/t/tmva-variables-events/27675)

<div class="topic-metadata">

**Author:** [@Geo](https://root-forum.cern.ch/u/Geo)\
**Replies:** 1\
**Last updated:** [January 25, 2018, 8:57am UTC](https://root-forum.cern.ch/t/tmva-variables-events/27675 "2018-01-25T08:57:20Z")

</div>

Hello a theoretical question regarding TMVA. Can I have for background a root file that the variables inside the tree have different number of events? or there will be some issue? cheers

---

## [I have TMVAGlob error](https://root-forum.cern.ch/t/i-have-tmvaglob-error/27686)

<div class="topic-metadata">

**Author:** [@1114](https://root-forum.cern.ch/u/1114)\
**Replies:** 2\
**Last updated:** [January 24, 2018, 2:41pm UTC](https://root-forum.cern.ch/t/i-have-tmvaglob-error/27686 "2018-01-24T14:41:18Z")

</div>

Hello, I have an issue with TMVA. While I am running TMVAClassification.C in the guide, I got this error. /u/user/dlehd6132/TMVA-v4.2.0/test/./variables.C16:4: error: use of undeclared TMVAGlob::Initialize( useTMVASt…

---

## [Problem with TMVA](https://root-forum.cern.ch/t/problem-with-tmva/27668)

<div class="topic-metadata">

**Author:** [@Geo](https://root-forum.cern.ch/u/Geo)\
**Replies:** 2\
**Last updated:** [January 22, 2018, 2:12pm UTC](https://root-forum.cern.ch/t/problem-with-tmva/27668 "2018-01-22T14:12:46Z")

</div>

Hello, I have an issue with TMVA. While I am trying to do the training and the testing (BDT) I get the following result: — Tools : error in matrix diagonalization; printed S and B and (for one of m…

---

## [Plotting input variables for specific MVA cut](https://root-forum.cern.ch/t/plotting-input-variables-for-specific-mva-cut/27566)

<div class="topic-metadata">

**Author:** [@Alkass](https://root-forum.cern.ch/u/Alkass)\
**Replies:** 4\
**Last updated:** [January 16, 2018, 12:57pm UTC](https://root-forum.cern.ch/t/plotting-input-variables-for-specific-mva-cut/27566 "2018-01-16T12:57:30Z")

</div>

Hello In the .root file one gets from TMVA, there are the TrainTree and TestTree which also contain the input variables - So, using something like TestTree-\>Draw(“var1”,“BDT\>x”) one can easily draw the input variable f…

---

## [Problem reading .root from TMVA](https://root-forum.cern.ch/t/problem-reading-root-from-tmva/27560)

<div class="topic-metadata">

**Author:** [@Alkass](https://root-forum.cern.ch/u/Alkass)\
**Replies:** 3\
**Last updated:** [January 15, 2018, 2:42pm UTC](https://root-forum.cern.ch/t/problem-reading-root-from-tmva/27560 "2018-01-15T14:42:28Z")

</div>

Hello I am having problems reading the .root made with 6.12/04. In particular when I do root -l TMVA::TMVAGui(“TMVA.root”) the panel opens but then seems like the file is empty (which is not). The .root file can be f…

---

## [General questions about TMVA](https://root-forum.cern.ch/t/general-questions-about-tmva/27516)

<div class="topic-metadata">

**Author:** [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Replies:** 4\
**Last updated:** [January 12, 2018, 3:20pm UTC](https://root-forum.cern.ch/t/general-questions-about-tmva/27516 "2018-01-12T15:20:09Z")

</div>

Dear TMVA users, I just started learning about performing multivariate analysis in the context of cosmic-ray research and needless to say, I am a bit lost. The idea is simple: use TMVA package to be able to classify ev…

---

## [TMVAGui PROBLEM](https://root-forum.cern.ch/t/tmvagui-problem/27493)

<div class="topic-metadata">

**Author:** [@Geo](https://root-forum.cern.ch/u/Geo)\
**Replies:** 2\
**Last updated:** [January 9, 2018, 7:36pm UTC](https://root-forum.cern.ch/t/tmvagui-problem/27493 "2018-01-09T19:36:34Z")

</div>

Hello I have a problem with the gui of TMVA. When I run root -l TMVAGui.C, the gui pops up but when I choose a specific graph after the train and testing method, I cannot and the error is root \[1\] Error in TSystem::Expa…

---

## [Can we run Oproject's R TMVA in lxplus?](https://root-forum.cern.ch/t/can-we-run-oprojects-r-tmva-in-lxplus/27367)

<div class="topic-metadata">

**Author:** [@laramman2](https://root-forum.cern.ch/u/laramman2)\
**Replies:** 2\
**Last updated:** [December 22, 2017, 7:11pm UTC](https://root-forum.cern.ch/t/can-we-run-oprojects-r-tmva-in-lxplus/27367 "2017-12-22T19:11:57Z")

</div>

Hi all, I need to use R-TMVA’s xgboost package but only on lxplus. Is it possible?

---

## [Running ROOT-R on lxplus?](https://root-forum.cern.ch/t/running-root-r-on-lxplus/27328)

<div class="topic-metadata">

**Author:** [@laramman2](https://root-forum.cern.ch/u/laramman2)\
**Replies:** 1\
**Last updated:** [December 18, 2017, 4:14pm UTC](https://root-forum.cern.ch/t/running-root-r-on-lxplus/27328 "2017-12-18T16:14:48Z")

</div>

Hi is it possible to run ROOT-R on lxplus? Like TMVA, which has a standalone package and those included in lxplus, I was wondering if ROOT-R does too. If so, can anyone please teach me how? I’m new on this. Thanks!

---

## [How to use a particular amount of events for BDT training in TVMA?](https://root-forum.cern.ch/t/how-to-use-a-particular-amount-of-events-for-bdt-training-in-tvma/27284)

<div class="topic-metadata">

**Author:** [@laramman2](https://root-forum.cern.ch/u/laramman2)\
**Replies:** 3\
**Last updated:** [December 18, 2017, 3:33pm UTC](https://root-forum.cern.ch/t/how-to-use-a-particular-amount-of-events-for-bdt-training-in-tvma/27284 "2017-12-18T15:33:54Z")

</div>

Hello, I have over 64 million events but I don’t want to train them all. I plan to use only 5 million events only for training. I’ve looked into the TMVA user guide but I’m not exactly sure what to use. Any help is appr…

---

## [\[root6\] Easiest way to fill MVA response to TTree?](https://root-forum.cern.ch/t/root6-easiest-way-to-fill-mva-response-to-ttree/27251)

<div class="topic-metadata">

**Author:** [@hejb](https://root-forum.cern.ch/u/hejb)\
**Replies:** 2\
**Last updated:** [December 12, 2017, 4:16pm UTC](https://root-forum.cern.ch/t/root6-easiest-way-to-fill-mva-response-to-ttree/27251 "2017-12-12T16:16:07Z")

</div>

Hello, What’s the easiest way to fill MVA response to TTree? With root5, I just make a Class file from the TTree, then add something like the following in the .C file: if (fChain == 0) return; TFile \*outFile = T…

---

## [Wrong TMVA response on the TMVA Rectangular Cuts Method](https://root-forum.cern.ch/t/wrong-tmva-response-on-the-tmva-rectangular-cuts-method/27198)

<div class="topic-metadata">

**Author:** [@p73](https://root-forum.cern.ch/u/p73)\
**Replies:** 2\
**Last updated:** [December 11, 2017, 7:38pm UTC](https://root-forum.cern.ch/t/wrong-tmva-response-on-the-tmva-rectangular-cuts-method/27198 "2017-12-11T19:38:36Z")

</div>

I am using TMVA Rectangular Cuts Method. So here it is my xml file after training. \[screenshot-20171206-23:06:33\] I want to get tmva response from TMVA::Reader when testing trained method. So I write (inside a loop ov…

---

## [Who to believe, ROC-integ or ROC curve?](https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 4\
**Last updated:** [December 11, 2017, 4:10pm UTC](https://root-forum.cern.ch/t/who-to-believe-roc-integ-or-roc-curve/27086 "2017-12-11T16:10:52Z")

</div>

Hi all, sometimes when I train several methods the ROC-integ presented at the end of the training clearly do not respect the ROC curves accessed through TMVAGui. See for example: Name: Method: ROC-in…

---

## [Gaussian transformation turns variable to NAN when training BDT](https://root-forum.cern.ch/t/gaussian-transformation-turns-variable-to-nan-when-training-bdt/27213)

<div class="topic-metadata">

**Author:** [@willemv](https://root-forum.cern.ch/u/willemv)\
**Replies:** 2\
**Last updated:** [December 11, 2017, 3:40pm UTC](https://root-forum.cern.ch/t/gaussian-transformation-turns-variable-to-nan-when-training-bdt/27213 "2017-12-11T15:40:18Z")

</div>

Dear experts, I am trying to train a BDT for signal to background discrimination and have recently started getting issues when adding the “number of jets” variable which can be either 2 or 3 in the case at hand. When tr…

---

## [Option NCuts=-1 for optimal cuts in BDT training not implemented](https://root-forum.cern.ch/t/option-ncuts-1-for-optimal-cuts-in-bdt-training-not-implemented/27230)

<div class="topic-metadata">

**Author:** [@willemv](https://root-forum.cern.ch/u/willemv)\
**Replies:** 2\
**Last updated:** [December 10, 2017, 11:59pm UTC](https://root-forum.cern.ch/t/option-ncuts-1-for-optimal-cuts-in-bdt-training-not-implemented/27230 "2017-12-10T23:59:49Z")

</div>

Dear experts, I am using ROOT version 6.10/09 and when trying to train a BDT using the option “nCuts=-1” I am getting the following warning messages: WARNING : You had chosen the training mode using op…

---

## [Using MethodCategory with TMVA::Reader](https://root-forum.cern.ch/t/using-methodcategory-with-tmva-reader/27148)

<div class="topic-metadata">

**Author:** [@mneu](https://root-forum.cern.ch/u/mneu)\
**Replies:** 3\
**Last updated:** [December 7, 2017, 2:32pm UTC](https://root-forum.cern.ch/t/using-methodcategory-with-tmva-reader/27148 "2017-12-07T14:32:53Z")

</div>

Is it possible to use the MethodCategory with the TMVA::Reader? The documentation does not mention it…

---

## [Fix range of input variables](https://root-forum.cern.ch/t/fix-range-of-input-variables/27012)

<div class="topic-metadata">

**Author:** [@ramkrishna](https://root-forum.cern.ch/u/ramkrishna)\
**Replies:** 6\
**Last updated:** [December 6, 2017, 4:40am UTC](https://root-forum.cern.ch/t/fix-range-of-input-variables/27012 "2017-12-06T04:40:37Z")

</div>

Hi all, I would like to fix the range of input variables for the signal and background both in AddVariable. For that I can see here (link) that there is an option for adding min and max. But its not working. Is this mi…

---

## [Adding treess to dataloader with weights does not work (for me)](https://root-forum.cern.ch/t/adding-treess-to-dataloader-with-weights-does-not-work-for-me/27038)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 8\
**Last updated:** [December 5, 2017, 3:34pm UTC](https://root-forum.cern.ch/t/adding-treess-to-dataloader-with-weights-does-not-work-for-me/27038 "2017-12-05T15:34:25Z")

</div>

Hi, my problem is very simple when I add a tree to the dataloader the weight parameters does nothing. In other words this: TTree \* tree = (TTree\*)file -\>Get("tree"); dataloader-\>AddSignalTree( tree1 ); dataloader-\>Ad…

---

## [Segmentation violation error when call TMVA::MethodBase::GetMaximumSignificance method](https://root-forum.cern.ch/t/segmentation-violation-error-when-call-tmva-methodbase-getmaximumsignificance-method/27026)

<div class="topic-metadata">

**Author:** [@p73](https://root-forum.cern.ch/u/p73)\
**Replies:** 7\
**Last updated:** [November 29, 2017, 4:54pm UTC](https://root-forum.cern.ch/t/segmentation-violation-error-when-call-tmva-methodbase-getmaximumsignificance-method/27026 "2017-11-29T16:54:59Z")

</div>

I am using TMVA Rectangular Cuts method. After successful training I want to get cuts of maximum significance, so I use: reader-\>BookMVA( "Cuts", "./dataset/weights/EtotPtotClf\_Cuts.weights.xml" ); TMVA::Metho…

---

## [Is it possible to get information about training data at the application level? (TMVA)](https://root-forum.cern.ch/t/is-it-possible-to-get-information-about-training-data-at-the-application-level-tmva/27021)

<div class="topic-metadata">

**Author:** [@p73](https://root-forum.cern.ch/u/p73)\
**Replies:** 1\
**Last updated:** [November 24, 2017, 1:55pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-get-information-about-training-data-at-the-application-level-tmva/27021 "2017-11-24T13:55:10Z")

</div>

I would like to separate the training and application processes so I could train method only once and then use it several times. Particularly, I need the information about number of training signal and background events…

---

## [Strange cut values from TMVA Rectangular Cuts classificator](https://root-forum.cern.ch/t/strange-cut-values-from-tmva-rectangular-cuts-classificator/26959)

<div class="topic-metadata">

**Author:** [@p73](https://root-forum.cern.ch/u/p73)\
**Replies:** 5\
**Last updated:** [November 22, 2017, 1:55pm UTC](https://root-forum.cern.ch/t/strange-cut-values-from-tmva-rectangular-cuts-classificator/26959 "2017-11-22T13:55:14Z")

</div>

I am using TMVA Rectangular Cuts classificator. After training I get this cut values: Cuts : Cut values for requested signal efficiency: 0.9 : Corresponding background effic…

---

## [How to get optimal cut from TMVA Rectangular Cuts method?](https://root-forum.cern.ch/t/how-to-get-optimal-cut-from-tmva-rectangular-cuts-method/26978)

<div class="topic-metadata">

**Author:** [@p73](https://root-forum.cern.ch/u/p73)\
**Replies:** 1\
**Last updated:** [November 22, 2017, 11:59am UTC](https://root-forum.cern.ch/t/how-to-get-optimal-cut-from-tmva-rectangular-cuts-method/26978 "2017-11-22T11:59:55Z")

</div>

I am using TMVA Rectangular Cuts method. Using TMVA::GUI I can see the optimal cut corresponding to maximal significance: S/sqrt(S + B). But there it is supposed that there are 1000 signal events and 1000 background ev…

---

## [Some problems arise when work with TMVA Rectangular Cuts method](https://root-forum.cern.ch/t/some-problems-arise-when-work-with-tmva-rectangular-cuts-method/26975)

<div class="topic-metadata">

**Author:** [@p73](https://root-forum.cern.ch/u/p73)\
**Replies:** 1\
**Last updated:** [November 22, 2017, 11:46am UTC](https://root-forum.cern.ch/t/some-problems-arise-when-work-with-tmva-rectangular-cuts-method/26975 "2017-11-22T11:46:51Z")

</div>

I am working with TMVA Rectangular Cuts method. Until now I have encountered with some problems. Wrong image of significance dependence on signal efficiency. Different values for signal and background at the implementa…

---

## [Multiclass BDT, number of Test/Training events](https://root-forum.cern.ch/t/multiclass-bdt-number-of-test-training-events/26981)

<div class="topic-metadata">

**Author:** [@jordan](https://root-forum.cern.ch/u/jordan)\
**Replies:** 2\
**Last updated:** [November 21, 2017, 2:36pm UTC](https://root-forum.cern.ch/t/multiclass-bdt-number-of-test-training-events/26981 "2017-11-21T14:36:22Z")

</div>

Dear all, I try to use a multi-class BDTG but I cannot set the number of events used for training and testing. In usual binary BDT I use : dataloader-\>PrepareTrainingAndTestTree("", “Random:nTest\_Signal=5000:nTest\_Bac…

---

## [Is it possible to save TMVA data after training (dataset folder) not in the current dir?](https://root-forum.cern.ch/t/is-it-possible-to-save-tmva-data-after-training-dataset-folder-not-in-the-current-dir/26943)

<div class="topic-metadata">

**Author:** [@p73](https://root-forum.cern.ch/u/p73)\
**Replies:** 3\
**Last updated:** [November 20, 2017, 4:21pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-save-tmva-data-after-training-dataset-folder-not-in-the-current-dir/26943 "2017-11-20T16:21:40Z")

</div>

I am using TMVA methods for classification. If I write TMVA::DataLoader\* dataloader = new TMVA::DataLoader( "../Data/1400/TMVA/Training/dataset" ); I see then after all processes that there is folder dataset with …

---

## [Cannot call method of TMVA::MethodCuts after casting from TMVA::MethodBase](https://root-forum.cern.ch/t/cannot-call-method-of-tmva-methodcuts-after-casting-from-tmva-methodbase/26860)

<div class="topic-metadata">

**Author:** [@p73](https://root-forum.cern.ch/u/p73)\
**Replies:** 3\
**Last updated:** [November 11, 2017, 12:52pm UTC](https://root-forum.cern.ch/t/cannot-call-method-of-tmva-methodcuts-after-casting-from-tmva-methodbase/26860 "2017-11-11T12:52:39Z")

</div>

I am using TMVA methods for classification. Particularly, the Rectangular Cuts method is used. And I want to get cuts’ values after training: factory-\>BookMethod( dataloader, TMVA::Types::kKNN, "kNN", "nkNN=40"); …

---

## [Get Method from CrossValidation](https://root-forum.cern.ch/t/get-method-from-crossvalidation/26854)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 2\
**Last updated:** [November 10, 2017, 4:42pm UTC](https://root-forum.cern.ch/t/get-method-from-crossvalidation/26854 "2017-11-10T16:42:03Z")

</div>

Hi all, I’m doing some test with crossvalidation, mainly following the tutorial. Is there a way to get the method actually trained (i.e. getting the weight file) in order to use it? If not, what it the utility of the …

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

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