# TMVA

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

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

---

## [Passing variable type 'double' to TMVA::Reader::AddVariable](https://root-forum.cern.ch/t/passing-variable-type-double-to-tmva-reader-addvariable/15208)

<div class="topic-metadata">

**Author:** [@asp](https://root-forum.cern.ch/u/asp)\
**Replies:** 0\
**Last updated:** [November 7, 2012, 3:02pm UTC](https://root-forum.cern.ch/t/passing-variable-type-double-to-tmva-reader-addvariable/15208 "2012-11-07T15:02:04Z")

</div>

Hi all, I've noticed an annoying inconsistency in the variable types accepted by the methods TMVA::factory::AddVariable() and TMVA::Reader::AddVariable(). While the former accepts variables of type 'double', the latte…

---

## [Training and testing numbers with preselection in TMVA 4.1.2](https://root-forum.cern.ch/t/training-and-testing-numbers-with-preselection-in-tmva-4-1-2/14790)

<div class="topic-metadata">

**Author:** [@cwalter](https://root-forum.cern.ch/u/cwalter)\
**Replies:** 1\
**Last updated:** [November 2, 2012, 12:11pm UTC](https://root-forum.cern.ch/t/training-and-testing-numbers-with-preselection-in-tmva-4-1-2/14790 "2012-11-02T12:11:55Z")

</div>

Dear All, I posted this on the TMVA sourceforge mailing list but there wasn't a response and it isn't clear if that is still an active way of talking to experts. I am reposting a slightly edited version of my question…

---

## [Code for variable ranking in BDT regressions (TMVA)](https://root-forum.cern.ch/t/code-for-variable-ranking-in-bdt-regressions-tmva/14844)

<div class="topic-metadata">

**Author:** [@aharel](https://root-forum.cern.ch/u/aharel)\
**Replies:** 2\
**Last updated:** [November 1, 2012, 1:48pm UTC](https://root-forum.cern.ch/t/code-for-variable-ranking-in-bdt-regressions-tmva/14844 "2012-11-01T13:48:55Z")

</div>

Dear TMVA maintainers, I've done another batch of studies of multi-variate regression using TMVA. Again the best tool for my needs was the BDT with Grad type boosting. This time most other tools crashed in one stage or…

---

## [Avoiding re-use of trained events during TMVA application](https://root-forum.cern.ch/t/avoiding-re-use-of-trained-events-during-tmva-application/15109)

<div class="topic-metadata">

**Author:** [@callampen](https://root-forum.cern.ch/u/callampen)\
**Replies:** 0\
**Last updated:** [October 18, 2012, 7:03pm UTC](https://root-forum.cern.ch/t/avoiding-re-use-of-trained-events-during-tmva-application/15109 "2012-10-18T19:03:58Z")

</div>

It is my understanding that when applying a TMVA method (using TMVA::Reader) in your larger analysis (limit setting, etc), you don't want to re-use your training events. However, I see no easy way to determine which even…

---

## [TMVA - cuts SA xml efficiencies file doesn't match ROC curve](https://root-forum.cern.ch/t/tmva-cuts-sa-xml-efficiencies-file-doesnt-match-roc-curve/14994)

<div class="topic-metadata">

**Author:** [@davs](https://root-forum.cern.ch/u/davs)\
**Replies:** 0\
**Last updated:** [September 27, 2012, 12:23pm UTC](https://root-forum.cern.ch/t/tmva-cuts-sa-xml-efficiencies-file-doesnt-match-roc-curve/14994 "2012-09-27T12:23:37Z")

</div>

Hello, I am using the optimization method Cuts SA for my analysis. When I use a certain amount of variables, the ROC curve displayed by the TMVAGUI starts acting strange and does not match at all the efficiencies giv…

---

## [TMVA v4.1.2: bug in MethodBDT::SetTuneParameters()?](https://root-forum.cern.ch/t/tmva-v4-1-2-bug-in-methodbdt-settuneparameters/13645)

<div class="topic-metadata">

**Author:** [@xlei](https://root-forum.cern.ch/u/xlei)\
**Replies:** 1\
**Last updated:** [September 27, 2012, 10:14am UTC](https://root-forum.cern.ch/t/tmva-v4-1-2-bug-in-methodbdt-settuneparameters/13645 "2012-09-27T10:14:19Z")

</div>

Hi, For BDT with gradient boosting, when running factory-\>OptimizeAllMethods(), "Shrinkage" is scanned but its value is never reset in each iteration. In MethodBDT::OptimizeTuningParameters(), it says: else if (…

---

## [Run tmva on a standalone application using g++](https://root-forum.cern.ch/t/run-tmva-on-a-standalone-application-using-g/14961)

<div class="topic-metadata">

**Author:** [@magistros](https://root-forum.cern.ch/u/magistros)\
**Replies:** 2\
**Last updated:** [September 21, 2012, 12:17pm UTC](https://root-forum.cern.ch/t/run-tmva-on-a-standalone-application-using-g/14961 "2012-09-21T12:17:32Z")

</div>

Hi all, I have a code, where I am using the TMVA factory in order to train a Neural Network. I want to execute it, outside of CINT, so, I import all the headers but when I am trying: g++ \`root-config --cflags\` -…

---

## [Use of real data in TMVA](https://root-forum.cern.ch/t/use-of-real-data-in-tmva/14791)

<div class="topic-metadata">

**Author:** [@Alkass](https://root-forum.cern.ch/u/Alkass)\
**Replies:** 0\
**Last updated:** [August 19, 2012, 4:37pm UTC](https://root-forum.cern.ch/t/use-of-real-data-in-tmva/14791 "2012-08-19T16:37:11Z")

</div>

Hi Apologies for my naive question, since I am quite new to TMVA; Suppose I am having the MET as variable, and I assign the trees like factory-\>AddSignalTree ( signal, signalWeight ); factory-\>AddBac…

---

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

<div class="topic-metadata">

**Author:** [@sircar](https://root-forum.cern.ch/u/sircar)\
**Replies:** 1\
**Last updated:** [August 1, 2012, 10:38pm UTC](https://root-forum.cern.ch/t/tmva-error/12413 "2012-08-01T22:38:31Z")

</div>

Hi I was doing some BDT training using TMVA. When the training got completed I got this warning message. Can some one tell me what this warning means. I checked my input root files none of them has zero entries.Than…

---

## [TBasket problem reading TMVA file](https://root-forum.cern.ch/t/tbasket-problem-reading-tmva-file/14167)

<div class="topic-metadata">

**Author:** [@Yaxara](https://root-forum.cern.ch/u/Yaxara)\
**Replies:** 1\
**Last updated:** [July 4, 2012, 10:37am UTC](https://root-forum.cern.ch/t/tbasket-problem-reading-tmva-file/14167 "2012-07-04T10:37:07Z")

</div>

Hi to everyone, I am trying to read a file from TMVA output (which stores some variables in a simple TNtuple), but it reports always this error: When I look to the TNtuple structure I find a Tree Compression Factor …

---

## [Step function as neuron activation function](https://root-forum.cern.ch/t/step-function-as-neuron-activation-function/14452)

<div class="topic-metadata">

**Author:** [@leddig](https://root-forum.cern.ch/u/leddig)\
**Replies:** 0\
**Last updated:** [June 12, 2012, 9:26am UTC](https://root-forum.cern.ch/t/step-function-as-neuron-activation-function/14452 "2012-06-12T09:26:22Z")

</div>

Hi all, I am trying to analyze a big chunk of data using an MLP in TMVA. Unfortunately the neuron activation function slows things down. I am running for 3 days now and only managed to analyze 430000 events. To speed t…

---

## [TMVA problem in example script](https://root-forum.cern.ch/t/tmva-problem-in-example-script/13942)

<div class="topic-metadata">

**Author:** [@callampen](https://root-forum.cern.ch/u/callampen)\
**Replies:** 3\
**Last updated:** [April 17, 2012, 10:22pm UTC](https://root-forum.cern.ch/t/tmva-problem-in-example-script/13942 "2012-04-17T22:22:56Z")

</div>

Hi, In the example script for TMVA ($(ROOTSYS)/tmva/test/TMVAClassification.C), I may have found a mistake... I'm using the trunk of root as of a couple days ago. Line 192 shows: factory-\>AddSpectator( "spec…

---

## [Library problem when making TMVA in Mac OS X](https://root-forum.cern.ch/t/library-problem-when-making-tmva-in-mac-os-x/14126)

<div class="topic-metadata">

**Author:** [@Nonnormalizable](https://root-forum.cern.ch/u/Nonnormalizable)\
**Replies:** 1\
**Last updated:** [April 17, 2012, 9:36pm UTC](https://root-forum.cern.ch/t/library-problem-when-making-tmva-in-mac-os-x/14126 "2012-04-17T21:36:23Z")

</div>

Hello, I'm trying to build TMVA in Mac OS X 10.7.3 according to the how to with an installation of root 5.32/01 that I build from source. It gives the error Building shared library lib/libTMVA.dylib ... ld: duplica…

---

## [TMVA and building on a Mac](https://root-forum.cern.ch/t/tmva-and-building-on-a-mac/14134)

<div class="topic-metadata">

**Author:** [@Nonnormalizable](https://root-forum.cern.ch/u/Nonnormalizable)\
**Replies:** 3\
**Last updated:** [April 17, 2012, 9:35pm UTC](https://root-forum.cern.ch/t/tmva-and-building-on-a-mac/14134 "2012-04-17T21:35:40Z")

</div>

Hello, I'm trying to build TMVA in Mac OS X 10.7.3 according to the how to with an installation of root 5.32/01 that I built from source. It gives the error Building shared library lib/libTMVA.dylib ... ld: duplica…

---

## [TMVA - Unknown method index in map: 20](https://root-forum.cern.ch/t/tmva-unknown-method-index-in-map-20/13139)

<div class="topic-metadata">

**Author:** [@Stefanos21](https://root-forum.cern.ch/u/Stefanos21)\
**Replies:** 1\
**Last updated:** [April 6, 2012, 10:19pm UTC](https://root-forum.cern.ch/t/tmva-unknown-method-index-in-map-20/13139 "2012-04-06T22:19:13Z")

</div>

Hi all. I'm trying to use TMVA with root root -l TMVAClassification.C(\\"NeuroBayes\\") but I get the following error --- Types : Unknown method index in map: 20 I don't have this problem wh…

---

## [TMVA binning](https://root-forum.cern.ch/t/tmva-binning/14087)

<div class="topic-metadata">

**Author:** [@wiso](https://root-forum.cern.ch/u/wiso)\
**Replies:** 0\
**Last updated:** [April 4, 2012, 5:19pm UTC](https://root-forum.cern.ch/t/tmva-binning/14087 "2012-04-04T17:19:13Z")

</div>

Hello, I'm trying to modify the binning of the TMVA output: TMVA::Factory\* factory = new TMVA::Factory("calibration\_MVA", &output\_file); (TMVA::gConfig().GetVaria…

---

## [TMVA crashing: Helge, you have another bug](https://root-forum.cern.ch/t/tmva-crashing-helge-you-have-another-bug/13290)

<div class="topic-metadata">

**Author:** [@opus117](https://root-forum.cern.ch/u/opus117)\
**Replies:** 1\
**Last updated:** [February 7, 2012, 3:51pm UTC](https://root-forum.cern.ch/t/tmva-crashing-helge-you-have-another-bug/13290 "2012-02-07T15:51:35Z")

</div>

Hi Folks, I am just starting (learning) how to use BDTs with TMVA. I did a test with a small sample of background and data. That seemed to work ok. So I threw much bigger trees at the code and it is crashing out with a…

---

## [TMVA::MethodBDT throws St9bad\_alloc while reading trees](https://root-forum.cern.ch/t/tmva-methodbdt-throws-st9bad-alloc-while-reading-trees/13699)

<div class="topic-metadata">

**Author:** [@mdalton](https://root-forum.cern.ch/u/mdalton)\
**Replies:** 2\
**Last updated:** [February 3, 2012, 4:04pm UTC](https://root-forum.cern.ch/t/tmva-methodbdt-throws-st9bad-alloc-while-reading-trees/13699 "2012-02-03T16:04:59Z")

</div>

Hi Everyone, I get a St9bad\_alloc when I am reading the 4th tree (out of 200) from a txt weights file. The error comes from: TMVA::MethodBDT::ReadWeightsFromStream( istream& istr ) defined in tmva/src/MethodBDT.cxx …

---

## [\[TMVA\] change FOM](https://root-forum.cern.ch/t/tmva-change-fom/13578)

<div class="topic-metadata">

**Author:** [@volpig](https://root-forum.cern.ch/u/volpig)\
**Replies:** 0\
**Last updated:** [January 6, 2012, 7:18pm UTC](https://root-forum.cern.ch/t/tmva-change-fom/13578 "2012-01-06T19:18:19Z")

</div>

Among the TMVA evaluation plot there is a S/sqrt(S+B) curve, indicating the maximum value as function of the signal efficiency. Is it possible to define a custom FOM function?

---

## [\[TMVA\] Reader Output Changes from Root 5.28 to 5.30](https://root-forum.cern.ch/t/tmva-reader-output-changes-from-root-5-28-to-5-30/13313)

<div class="topic-metadata">

**Author:** [@jsaxon](https://root-forum.cern.ch/u/jsaxon)\
**Replies:** 0\
**Last updated:** [November 4, 2011, 8:42pm UTC](https://root-forum.cern.ch/t/tmva-reader-output-changes-from-root-5-28-to-5-30/13313 "2011-11-04T20:42:45Z")

</div>

Hi TMVA Experts, (I also posted this to the sourceforge site; I'm not sure which is more correct.) I trained a MLP net in root version 5.28 and have had good success with the training and performance, etc. It's an a…

---

## [\[TMVA\] tune cuts in categories question](https://root-forum.cern.ch/t/tmva-tune-cuts-in-categories-question/13308)

<div class="topic-metadata">

**Author:** [@nik232](https://root-forum.cern.ch/u/nik232)\
**Replies:** 0\
**Last updated:** [November 4, 2011, 1:50pm UTC](https://root-forum.cern.ch/t/tmva-tune-cuts-in-categories-question/13308 "2011-11-04T13:50:47Z")

</div>

Dear ROOT and TMVA experts, I am wondering whether I could use TMVA to train a classifier which uses cuts in categories. There are 2 levels of this problem: 1st level (the simple one). Suppose that you want to tune…

---

## [How to use TMVA with several cores/servers](https://root-forum.cern.ch/t/how-to-use-tmva-with-several-cores-servers/13173)

<div class="topic-metadata">

**Author:** [@iglez](https://root-forum.cern.ch/u/iglez)\
**Replies:** 0\
**Last updated:** [October 6, 2011, 12:46pm UTC](https://root-forum.cern.ch/t/how-to-use-tmva-with-several-cores-servers/13173 "2011-10-06T12:46:28Z")

</div>

Hi, I am quite ignorant of the details of TMVA, so this might be asking very simple questions. I couldn't, however, get clear answers by looking into the TMVA page and in the forum. I wonder if TMVA algorithms are u…

---

## [Correlation pattern recognition](https://root-forum.cern.ch/t/correlation-pattern-recognition/13116)

<div class="topic-metadata">

**Author:** [@radbalint](https://root-forum.cern.ch/u/radbalint)\
**Replies:** 1\
**Last updated:** [September 22, 2011, 11:11am UTC](https://root-forum.cern.ch/t/correlation-pattern-recognition/13116 "2011-09-22T11:11:24Z")

</div>

Hi, (hope this is the right forum to ask) suppose I have a 2D scatter plot plotting some correlation between two variables. Suppose that due to some underlying processes the plot shows a structure having, say, two se…

---

## [TMVA define train and test samples from differente files](https://root-forum.cern.ch/t/tmva-define-train-and-test-samples-from-differente-files/12990)

<div class="topic-metadata">

**Author:** [@cicciodevoto](https://root-forum.cern.ch/u/cicciodevoto)\
**Replies:** 2\
**Last updated:** [September 8, 2011, 3:23pm UTC](https://root-forum.cern.ch/t/tmva-define-train-and-test-samples-from-differente-files/12990 "2011-09-08T15:23:01Z")

</div>

Hi all, I have a problem with TMVA and I tried to use the search but, apparently, I did not find anything. I need to select the train and test events for signal and background from different files; I mean I have 1 fi…

---

## [Gaussian transformation of TMVA Regression target variable?](https://root-forum.cern.ch/t/gaussian-transformation-of-tmva-regression-target-variable/12841)

<div class="topic-metadata">

**Author:** [@jbendavid](https://root-forum.cern.ch/u/jbendavid)\
**Replies:** 0\
**Last updated:** [July 27, 2011, 4:11pm UTC](https://root-forum.cern.ch/t/gaussian-transformation-of-tmva-regression-target-variable/12841 "2011-07-27T16:11:12Z")

</div>

Hi, Is it possible to apply a Gaussian transformation to the target variable for TMVA regression? I book my bdt regression using factory-\>BookMethod( TMVA::Types::kBDT, "BDT", "!H:!V:VarTransform=…

---

## [TMVA Variable Rank from Weights File](https://root-forum.cern.ch/t/tmva-variable-rank-from-weights-file/12717)

<div class="topic-metadata">

**Author:** [@kadrlica](https://root-forum.cern.ch/u/kadrlica)\
**Replies:** 1\
**Last updated:** [July 7, 2011, 1:24am UTC](https://root-forum.cern.ch/t/tmva-variable-rank-from-weights-file/12717 "2011-07-07T01:24:51Z")

</div>

Greetings all, I've been trying to use the weights file to reproduce the variable rankings printed when training a BDT classifier (using TMVA 4.0.4). I'm not convinced that this is possible, but it seems like something…

---

## [TMVA: Programmatically getting the significance](https://root-forum.cern.ch/t/tmva-programmatically-getting-the-significance/12383)

<div class="topic-metadata">

**Author:** [@Simon.cph](https://root-forum.cern.ch/u/Simon.cph)\
**Replies:** 5\
**Last updated:** [May 12, 2011, 4:17pm UTC](https://root-forum.cern.ch/t/tmva-programmatically-getting-the-significance/12383 "2011-05-12T16:17:55Z")

</div>

Hi, I'm not sure if this belongs in the support forum. I'm running a TMVA Fisher classifier on some data using pyroot. I can train, test and evaluate the method. I can then use the TMVAGui.C to look at the significance o…

---

## [Variable Ranking after models have been generated](https://root-forum.cern.ch/t/variable-ranking-after-models-have-been-generated/12359)

<div class="topic-metadata">

**Author:** [@ravikumar10](https://root-forum.cern.ch/u/ravikumar10)\
**Replies:** 0\
**Last updated:** [May 4, 2011, 5:18pm UTC](https://root-forum.cern.ch/t/variable-ranking-after-models-have-been-generated/12359 "2011-05-04T17:18:23Z")

</div>

Background I have a reasonably large dataset with the following characteristics: 20,000 signal events 80,000 background events 400 potential variables I am using various TMVA…

---

## [TMVA::Factory::TrainAllMethods segmentation fault](https://root-forum.cern.ch/t/tmva-factory-trainallmethods-segmentation-fault/12222)

<div class="topic-metadata">

**Author:** [@makagan](https://root-forum.cern.ch/u/makagan)\
**Replies:** 0\
**Last updated:** [April 7, 2011, 7:16pm UTC](https://root-forum.cern.ch/t/tmva-factory-trainallmethods-segmentation-fault/12222 "2011-04-07T19:16:00Z")

</div>

I have been trying to run TMVA, and I keep getting segmentation faults when trying to TrainAllMethods. I have attached the stack trace. I do not have this problem when I run the standard TMVAClassifictaion example. So …

---

## [Problem with plot of Decision Tree](https://root-forum.cern.ch/t/problem-with-plot-of-decision-tree/12166)

<div class="topic-metadata">

**Author:** [@erikhi](https://root-forum.cern.ch/u/erikhi)\
**Replies:** 0\
**Last updated:** [March 29, 2011, 3:06pm UTC](https://root-forum.cern.ch/t/problem-with-plot-of-decision-tree/12166 "2011-03-29T15:06:16Z")

</div>

Hi, I have problems plotting the Decision tree (see BDT\_tree\_plot.png). I have included my TMVA script and also the background and signal files. Is this a problem with TMVA or with my data? Erik H. \[image\] TMVATes…

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

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