# TMVA

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

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

---

## [Launch TMVAMulticlass](https://root-forum.cern.ch/t/launch-tmvamulticlass/22132)

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 2\
**Last updated:** [November 8, 2016, 5:38pm UTC](https://root-forum.cern.ch/t/launch-tmvamulticlass/22132 "2016-11-08T17:38:27Z")

</div>

Dear experts, - When I'm running TMVAMultiClassGui I have the long message \[1\] is this normal? - Also when I want to plot the variables, I have this error message \[2\] while I do not have any error message in my log file …

---

## [TMVA: How to get event-by-event weights?](https://root-forum.cern.ch/t/tmva-how-to-get-event-by-event-weights/22138)

<div class="topic-metadata">

**Author:** [@doubleAron](https://root-forum.cern.ch/u/doubleAron)\
**Replies:** 1\
**Last updated:** [November 5, 2016, 4:43pm UTC](https://root-forum.cern.ch/t/tmva-how-to-get-event-by-event-weights/22138 "2016-11-05T16:43:51Z")

</div>

Hi, I am currently working with MC data that doesn't seem to accurately reproduce the underlying correlations between variables (1D projections look OK), and therefore when I compare the MVA output from my BDT's betwe…

---

## [How to compile .cxx files in TMVA](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082)

<div class="topic-metadata">

**Author:** [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Replies:** 5\
**Last updated:** [October 24, 2016, 1:14pm UTC](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082 "2016-10-24T13:14:38Z")

</div>

Dear experts, it could be a stupid question but since I upgrade my ROOT version to 6.06.08, I can not find a way to compile .cxx files in TMVA. I know it is different than the previous versions - such that there is no …

---

## [TMVA variable distribution issue](https://root-forum.cern.ch/t/tmva-variable-distribution-issue/21995)

<div class="topic-metadata">

**Author:** [@doubleAron](https://root-forum.cern.ch/u/doubleAron)\
**Replies:** 0\
**Last updated:** [October 6, 2016, 9:36am UTC](https://root-forum.cern.ch/t/tmva-variable-distribution-issue/21995 "2016-10-06T09:36:43Z")

</div>

Hi, So, I have an issue when reading my data into TMVA. The variable distributions do not correspond to those in the ROOT files from which they are being read. For reference I've attached a plot from TMVA and then a p…

---

## [TMVA factory weight](https://root-forum.cern.ch/t/tmva-factory-weight/21897)

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 2\
**Last updated:** [September 28, 2016, 2:52pm UTC](https://root-forum.cern.ch/t/tmva-factory-weight/21897 "2016-09-28T14:52:36Z")

</div>

Dear experts, - in TMVAClassification.C: root.cern.ch/doc/v606/TMVAClass ... tml#l00059 line 223 for the methods AddSignalTree(trees, weight) I wonder what "weight" refers to? Is it for event normalisation vs cross secti…

---

## [Undefined reference to \`TMVA::Tools::Instance()'](https://root-forum.cern.ch/t/undefined-reference-to-tmva-tools-instance/21899)

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 4\
**Last updated:** [September 20, 2016, 4:55pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-tmva-tools-instance/21899 "2016-09-20T16:55:16Z")

</div>

Dear experts, I want to compile the TMVAClassification() in my main.cc\[1\] using a Makefile \[2\] but I git the error message \[3\]. Is some TMVA library missing in my Makefile? Regards \[1\] \[calpas.web.cern.ch/calpas/ma…

---

## [G++5 ABI + TMVA - which branch to compile?](https://root-forum.cern.ch/t/g-5-abi-tmva-which-branch-to-compile/21871)

<div class="topic-metadata">

**Author:** [@behrenhoff](https://root-forum.cern.ch/u/behrenhoff)\
**Replies:** 1\
**Last updated:** [September 14, 2016, 8:03pm UTC](https://root-forum.cern.ch/t/g-5-abi-tmva-which-branch-to-compile/21871 "2016-09-14T20:03:21Z")

</div>

First of all: I like bleeding edge versions :smiley: According to sft.its.cern.ch/jira/browse/ROOT-7947 "The new llvm with GCC5 ABI support has arrived in the master" -\> thus I thought I could try the new root versio…

---

## [TMVA: -1 cut definition](https://root-forum.cern.ch/t/tmva-1-cut-definition/21837)

<div class="topic-metadata">

**Author:** [@alchauvi](https://root-forum.cern.ch/u/alchauvi)\
**Replies:** 2\
**Last updated:** [September 12, 2016, 5:40pm UTC](https://root-forum.cern.ch/t/tmva-1-cut-definition/21837 "2016-09-12T17:40:26Z")

</div>

Hi everybody! I am currently using TMVA for my analysis and would like to know what does this ncuts=-1 stands for when booking a method. In my case, I use boosted decision trees, I can easily get the meaning of a ncuts…

---

## [Where to find root macro with TMVA](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849)

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 13\
**Last updated:** [September 12, 2016, 11:55am UTC](https://root-forum.cern.ch/t/where-to-find-root-macro-with-tmva/21849 "2016-09-12T11:55:32Z")

</div>

Dear experts, I have ROOT 6.02/05, and I did not see any tmva like directory in $ROOTSYS/tutorials/. As I can't use the TMVA standalone packadge with root 6x, can you please tell me where I can find root macro example us…

---

## [TMVA compilation failed with root](https://root-forum.cern.ch/t/tmva-compilation-failed-with-root/21836)

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 3\
**Last updated:** [September 10, 2016, 1:41pm UTC](https://root-forum.cern.ch/t/tmva-compilation-failed-with-root/21836 "2016-09-10T13:41:08Z")

</div>

Dear expert, please send me to the right forum if it is not the good one to ask this question: I have root 6.00/00 and download TMVA-v4.2.0. Then in TMVA-v4.2.0 I did "make", but the compilation failed with the error m…

---

## [TMVA: How do Tree and Event-By-Event Weights Work?](https://root-forum.cern.ch/t/tmva-how-do-tree-and-event-by-event-weights-work/21724)

<div class="topic-metadata">

**Author:** [@jnhoward](https://root-forum.cern.ch/u/jnhoward)\
**Replies:** 1\
**Last updated:** [August 29, 2016, 3:16pm UTC](https://root-forum.cern.ch/t/tmva-how-do-tree-and-event-by-event-weights-work/21724 "2016-08-29T15:16:34Z")

</div>

Hi TMVA-Experts, I'm using the MLP Artificial Neural Network option in TMVA from ROOT version 6.02/13. I'm fairly new to TMVA. I have some specific questions but the over-arching issue I'm dealing with is a lack of u…

---

## [TMVA GetSeparation function error](https://root-forum.cern.ch/t/tmva-getseparation-function-error/21712)

<div class="topic-metadata">

**Author:** [@shreya](https://root-forum.cern.ch/u/shreya)\
**Replies:** 1\
**Last updated:** [August 19, 2016, 9:36am UTC](https://root-forum.cern.ch/t/tmva-getseparation-function-error/21712 "2016-08-19T09:36:00Z")

</div>

Hello, I am trying to find the separation between two histograms defined below - TH1F \*h1 = new TH1F("h1","log\_likelihood\_ttbar",100,-120,-40); TH1F \*h2 = new TH1F("h2","log\_likelihood\_ttH",100,-120,-40); I have u…

---

## [How to use TMVA for prediction?](https://root-forum.cern.ch/t/how-to-use-tmva-for-prediction/21427)

<div class="topic-metadata">

**Author:** [@Li\_Huang](https://root-forum.cern.ch/u/Li_Huang)\
**Replies:** 2\
**Last updated:** [June 27, 2016, 9:39am UTC](https://root-forum.cern.ch/t/how-to-use-tmva-for-prediction/21427 "2016-06-27T09:39:11Z")

</div>

Hi all, Does TMVA have any default way to do prediction just like in scikit-learn , the predict method? So we can predict the event belongs to which categories after testing and training. Best, Li

---

## [\[TMVA\] Pre-training initialization of Neural-net weights](https://root-forum.cern.ch/t/tmva-pre-training-initialization-of-neural-net-weights/21397)

<div class="topic-metadata">

**Author:** [@bcalvert](https://root-forum.cern.ch/u/bcalvert)\
**Replies:** 2\
**Last updated:** [June 22, 2016, 3:35pm UTC](https://root-forum.cern.ch/t/tmva-pre-training-initialization-of-neural-net-weights/21397 "2016-06-22T15:35:57Z")

</div>

Dear TMVA-experts, Is it possible to initialize the connection-weights of a neural network to some arbitrary values prior to beginning training? My understanding is the the TMVA::Reader class is able to read the .xml f…

---

## [\[TMVA\] Latest up-to-date information on features?](https://root-forum.cern.ch/t/tmva-latest-up-to-date-information-on-features/21396)

<div class="topic-metadata">

**Author:** [@bcalvert](https://root-forum.cern.ch/u/bcalvert)\
**Replies:** 2\
**Last updated:** [June 22, 2016, 3:32pm UTC](https://root-forum.cern.ch/t/tmva-latest-up-to-date-information-on-features/21396 "2016-06-22T15:32:31Z")

</div>

Dear fellow ROOT-ers and TMVA-users, I am using the TMVA package to perform a classification problem and in particular, have been focusing on the various neural-net based methods to try and accomplish this. Poking ar…

---

## [Can't Launch RooFit, but why?](https://root-forum.cern.ch/t/cant-launch-roofit-but-why/21201)

<div class="topic-metadata">

**Author:** [@Krusty](https://root-forum.cern.ch/u/Krusty)\
**Replies:** 2\
**Last updated:** [May 27, 2016, 3:44pm UTC](https://root-forum.cern.ch/t/cant-launch-roofit-but-why/21201 "2016-05-27T15:44:13Z")

</div>

Hi everyone! I wanted to use RooFit and the User's Guide says to run the ./configure of ROOT with the option --enable-roofit and then . I followed the instructions, but ROOT does not recognize RooRealVar, for example…

---

## [\[TMVA - MLP\] How to export weight class in python?](https://root-forum.cern.ch/t/tmva-mlp-how-to-export-weight-class-in-python/21120)

<div class="topic-metadata">

**Author:** [@nadrino](https://root-forum.cern.ch/u/nadrino)\
**Replies:** 2\
**Last updated:** [May 12, 2016, 8:15am UTC](https://root-forum.cern.ch/t/tmva-mlp-how-to-export-weight-class-in-python/21120 "2016-05-12T08:15:03Z")

</div>

Hi, I would like to ask if anyone know a method to export the neural network weight class in python instead of C++ ? By default, TMVA exports all the computed weight in .xml and with a C++ class in a folder called "wei…

---

## [Can I use TMVA for few events?](https://root-forum.cern.ch/t/can-i-use-tmva-for-few-events/20909)

<div class="topic-metadata">

**Author:** [@Li\_Huang](https://root-forum.cern.ch/u/Li_Huang)\
**Replies:** 2\
**Last updated:** [May 4, 2016, 5:57pm UTC](https://root-forum.cern.ch/t/can-i-use-tmva-for-few-events/20909 "2016-05-04T17:57:07Z")

</div>

Hi, Can I use TMVA for few events? for example 100 events?Can I simulate many events to avoid the statistic error? If this will take much error, can I simulate many events , for example 10^8 events. Using BDT as an…

---

## [Some questions on BDT in tmva](https://root-forum.cern.ch/t/some-questions-on-bdt-in-tmva/20979)

<div class="topic-metadata">

**Author:** [@Li\_Huang](https://root-forum.cern.ch/u/Li_Huang)\
**Replies:** 3\
**Last updated:** [April 19, 2016, 9:08am UTC](https://root-forum.cern.ch/t/some-questions-on-bdt-in-tmva/20979 "2016-04-19T09:08:37Z")

</div>

Hi, I think that BDT is a way that it can show what cuts applied, this is an advantages compare to other algorithm. But when I use BDT in TMVA, it is wired that it generate 850 plots. So I have some questions, 1. Why…

---

## [TMVA linker error](https://root-forum.cern.ch/t/tmva-linker-error/20824)

<div class="topic-metadata">

**Author:** [@sidebo](https://root-forum.cern.ch/u/sidebo)\
**Replies:** 3\
**Last updated:** [March 18, 2016, 11:48am UTC](https://root-forum.cern.ch/t/tmva-linker-error/20824 "2016-03-18T11:48:31Z")

</div>

This might be a silly mistake, but I can't resolve a linker error which seems to indicate I haven't installed the TMVA library properly. However, I tried both binary install and my own build which should have the TMVA on…

---

## [A confusion of weight](https://root-forum.cern.ch/t/a-confusion-of-weight/20784)

<div class="topic-metadata">

**Author:** [@Li\_Huang](https://root-forum.cern.ch/u/Li_Huang)\
**Replies:** 0\
**Last updated:** [March 12, 2016, 3:10pm UTC](https://root-forum.cern.ch/t/a-confusion-of-weight/20784 "2016-03-12T15:10:36Z")

</div>

Hi all, I have a confusion on the meaning of weight. For example, when I use BDT to distinguish signal and background, in real work , signal may 100 while background 10^6 . It is too little signal to avoid statistic er…

---

## [Writing a configured TMVA::Reader to a TFile](https://root-forum.cern.ch/t/writing-a-configured-tmva-reader-to-a-tfile/20662)

<div class="topic-metadata">

**Author:** [@gwatts](https://root-forum.cern.ch/u/gwatts)\
**Replies:** 1\
**Last updated:** [February 26, 2016, 3:32pm UTC](https://root-forum.cern.ch/t/writing-a-configured-tmva-reader-to-a-tfile/20662 "2016-02-26T15:32:54Z")

</div>

When using PROOF, I'm used to serializing all my ROOT objects so they can be transmitted to various PROOF slaves. I've just started using TMVA, and it looks like TMVA::Reader, though you can write it out to a file, doe…

---

## [4D interpolation](https://root-forum.cern.ch/t/4d-interpolation/20572)

<div class="topic-metadata">

**Author:** [@palomilla](https://root-forum.cern.ch/u/palomilla)\
**Replies:** 12\
**Last updated:** [February 12, 2016, 11:36am UTC](https://root-forum.cern.ch/t/4d-interpolation/20572 "2016-02-12T11:36:32Z")

</div>

Hi, I have an array of structures with four variables (x,y,z,v), every combination of these four variables define the center of a box and define two more values f(x,y,z,v) -\>E\_1 and E\_2. I have a lot of boxes (combinat…

---

## [Stack Overflow with TMVA/Cuts training](https://root-forum.cern.ch/t/stack-overflow-with-tmva-cuts-training/20541)

<div class="topic-metadata">

**Author:** [@gwatts](https://root-forum.cern.ch/u/gwatts)\
**Replies:** 10\
**Last updated:** [February 10, 2016, 8:53am UTC](https://root-forum.cern.ch/t/stack-overflow-with-tmva-cuts-training/20541 "2016-02-10T08:53:28Z")

</div>

Hi, I'm getting my feet wet with TMVA. The following code gives me a stack overflow during training. Below is the code and the log messages that come from running it. When I run in the debugger there are so many stack …

---

## [Conceptual problem on regression](https://root-forum.cern.ch/t/conceptual-problem-on-regression/20384)

<div class="topic-metadata">

**Author:** [@mgv4ce](https://root-forum.cern.ch/u/mgv4ce)\
**Replies:** 2\
**Last updated:** [January 12, 2016, 3:51pm UTC](https://root-forum.cern.ch/t/conceptual-problem-on-regression/20384 "2016-01-12T15:51:30Z")

</div>

Dear experts, I am trying to understand the workflow of calibration by regression, as distinct from parameter extraction from classifier. In the latter, after the MVA responses have been found for both simulated and mea…

---

## [TMVAGui in ipython](https://root-forum.cern.ch/t/tmvagui-in-ipython/20312)

<div class="topic-metadata">

**Author:** [@mdunser](https://root-forum.cern.ch/u/mdunser)\
**Replies:** 5\
**Last updated:** [December 10, 2015, 11:09am UTC](https://root-forum.cern.ch/t/tmvagui-in-ipython/20312 "2015-12-10T11:09:22Z")

</div>

Dear ROOT support team, I am trying to get a TMVAGui running in ipython and I am struggling to do so even after some searching. I'm running the ipython version that comes with lxplus, i.e. version 0.13.2 and it uses py…

---

## [TMVA training splitmode](https://root-forum.cern.ch/t/tmva-training-splitmode/20212)

<div class="topic-metadata">

**Author:** [@annabie](https://root-forum.cern.ch/u/annabie)\
**Replies:** 2\
**Last updated:** [November 19, 2015, 1:17pm UTC](https://root-forum.cern.ch/t/tmva-training-splitmode/20212 "2015-11-19T13:17:49Z")

</div>

Good morning guys, I'm actually new and I'm trying to make a BDT in root. (I usually use R, but I have to compare my R-models with the BDT output of root). My problem is that i want to save (in some way) the data that th…

---

## [TMVA set weights for S and B](https://root-forum.cern.ch/t/tmva-set-weights-for-s-and-b/20160)

<div class="topic-metadata">

**Author:** [@mrluca87](https://root-forum.cern.ch/u/mrluca87)\
**Replies:** 1\
**Last updated:** [November 6, 2015, 11:41am UTC](https://root-forum.cern.ch/t/tmva-set-weights-for-s-and-b/20160 "2015-11-06T11:41:30Z")

</div>

Dear Experts, I'm using TMVA in order to optimize a selection. I set the weights for Signal and Backgrounds with: factory.AddSignalTree ( signal, signalWeight ) factory.AddBackgroundTree( background,…

---

## [BDT - Understanding the implementation](https://root-forum.cern.ch/t/bdt-understanding-the-implementation/20084)

<div class="topic-metadata">

**Author:** [@behrenhoff](https://root-forum.cern.ch/u/behrenhoff)\
**Replies:** 4\
**Last updated:** [October 27, 2015, 6:11pm UTC](https://root-forum.cern.ch/t/bdt-understanding-the-implementation/20084 "2015-10-27T18:11:00Z")

</div>

Hello everybody, I am using BDTs - sometimes for large data sets. Thus I am interested in a) understanding how BDTs work internally b) reducing the time needed for training and evaluation In addition I want to have …

---

## [Zero Events Pass Background Selection with TMVA](https://root-forum.cern.ch/t/zero-events-pass-background-selection-with-tmva/20045)

<div class="topic-metadata">

**Author:** [@dabalaba](https://root-forum.cern.ch/u/dabalaba)\
**Replies:** 2\
**Last updated:** [October 26, 2015, 1:42pm UTC](https://root-forum.cern.ch/t/zero-events-pass-background-selection-with-tmva/20045 "2015-10-26T13:42:01Z")

</div>

I'm working with TMVA to classify signal and background events, and I am trying to apply a selection criteria on the training/testing data for both the signal and background samples. This is the code I used for the selec…

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

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