# TMVA

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

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

---

## [What is the use of weight when adding Trees](https://root-forum.cern.ch/t/what-is-the-use-of-weight-when-adding-trees/25243)

<div class="topic-metadata">

**Author:** [@haolinli](https://root-forum.cern.ch/u/haolinli)\
**Replies:** 5\
**Last updated:** [June 23, 2017, 9:36am UTC](https://root-forum.cern.ch/t/what-is-the-use-of-weight-when-adding-trees/25243 "2017-06-23T09:36:52Z")

</div>

Dear experts, I have a question about what is the principle to set the weight of the training Trees in TMVA. In TMVA we have factory-\>AddBackgroundTree(\*Tree, weight). I was woundering if the following logic and using …

---

## [Error when running TMVAGUI.C](https://root-forum.cern.ch/t/error-when-running-tmvagui-c/25258)

<div class="topic-metadata">

**Author:** [@gdule](https://root-forum.cern.ch/u/gdule)\
**Replies:** 3\
**Last updated:** [June 23, 2017, 9:17am UTC](https://root-forum.cern.ch/t/error-when-running-tmvagui-c/25258 "2017-06-23T09:17:11Z")

</div>

Hello, I was trying to analyze test.root (a BDT), using TMVAGUI.C, and this error popped up: --- Launch TMVA GUI to view input file: test.root Warning in \<TFile::Init\>: file test.root probably not closed, trying to…

---

## [Knowing whether a specific event is bg or sig using BDT](https://root-forum.cern.ch/t/knowing-whether-a-specific-event-is-bg-or-sig-using-bdt/25249)

<div class="topic-metadata">

**Author:** [@gdule](https://root-forum.cern.ch/u/gdule)\
**Replies:** 3\
**Last updated:** [June 22, 2017, 4:57pm UTC](https://root-forum.cern.ch/t/knowing-whether-a-specific-event-is-bg-or-sig-using-bdt/25249 "2017-06-22T16:57:50Z")

</div>

Hello, I am using BDT to seperate my background and signal (which are stored in TTrees). Assuming I have a pre-seperated sig and bg for the training of the tree, and also a mixed up samples for which i'd like to test t…

---

## [MVA::BDT : How to disable MaxDepth](https://root-forum.cern.ch/t/mva-bdt-how-to-disable-maxdepth/25142)

<div class="topic-metadata">

**Author:** [@Chinmay](https://root-forum.cern.ch/u/Chinmay)\
**Replies:** 4\
**Last updated:** [June 22, 2017, 6:18am UTC](https://root-forum.cern.ch/t/mva-bdt-how-to-disable-maxdepth/25142 "2017-06-22T06:18:49Z")

</div>

Hi, I am trying to use BDT for random forest regression. I want to disable MaxDepth option in training so that decision trees are formed till MinNodeSize is reached at all nodes or leaf nodes are formed. (Somethong equi…

---

## [Difference between training and test](https://root-forum.cern.ch/t/difference-between-training-and-test/25221)

<div class="topic-metadata">

**Author:** [@gdule](https://root-forum.cern.ch/u/gdule)\
**Replies:** 3\
**Last updated:** [June 21, 2017, 1:46pm UTC](https://root-forum.cern.ch/t/difference-between-training-and-test/25221 "2017-06-21T13:46:11Z")

</div>

Hello, I just started learning TMVA, and noticed that in many of the guides they use the words training and test, which I could not exactly understand in the context of TMVA. I hope someone could clear that up a bit fo…

---

## [Using tmva on mac os sierra](https://root-forum.cern.ch/t/using-tmva-on-mac-os-sierra/25167)

<div class="topic-metadata">

**Author:** [@Danny\_Lee](https://root-forum.cern.ch/u/Danny_Lee)\
**Replies:** 2\
**Last updated:** [June 18, 2017, 3:18pm UTC](https://root-forum.cern.ch/t/using-tmva-on-mac-os-sierra/25167 "2017-06-18T15:18:05Z")

</div>

Hi, I am attempting to learn tmva so I trying to run the examples in the $ROOTSYS/tutorials/tmva. I could get classification and regression example run on my desktop which is CentOS with ROOT 6 installed so that was no…

---

## [Using TMVA and Proof](https://root-forum.cern.ch/t/using-tmva-and-proof/25155)

<div class="topic-metadata">

**Author:** [@Danny\_Lee](https://root-forum.cern.ch/u/Danny_Lee)\
**Replies:** 1\
**Last updated:** [June 16, 2017, 7:51am UTC](https://root-forum.cern.ch/t/using-tmva-and-proof/25155 "2017-06-16T07:51:10Z")

</div>

Has anyone tried using both in the same script? like using TMVA in parallel process for large dataset? I'm just curious if it has been done before or it is even feasible to do so?

---

## [PyRandomForest TMVA::Reader crash](https://root-forum.cern.ch/t/pyrandomforest-tmva-reader-crash/25043)

<div class="topic-metadata">

**Author:** [@Chinmay](https://root-forum.cern.ch/u/Chinmay)\
**Replies:** 1\
**Last updated:** [June 7, 2017, 12:55pm UTC](https://root-forum.cern.ch/t/pyrandomforest-tmva-reader-crash/25043 "2017-06-07T12:55:19Z")

</div>

Hi, I am trying to use TMVA PyRandomForest. I am able to do the training,testing and evaluation smoothly, However when I try to Evaluate MVA using TMVA::Reader I get following crash. Info in \<MMLResponse::LoadData\>:…

---

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

<div class="topic-metadata">

**Author:** [@jon\_esteban](https://root-forum.cern.ch/u/jon_esteban)\
**Replies:** 4\
**Last updated:** [May 15, 2017, 8:26am UTC](https://root-forum.cern.ch/t/problem-tmva-with-binary-inputs/24752 "2017-05-15T08:26:49Z")

</div>

Hi, I'm using TMVA in order to classify people who have or not a heart disease. As inputs I have many variables such as age, heart rate, sex etc... The problem is that if I introduce sex which is a binary variable (0…

---

## [TMVA PlotDecisionBoundary.C with custom variables](https://root-forum.cern.ch/t/tmva-plotdecisionboundary-c-with-custom-variables/24610)

<div class="topic-metadata">

**Author:** [@daiktas](https://root-forum.cern.ch/u/daiktas)\
**Replies:** 1\
**Last updated:** [May 9, 2017, 1:25pm UTC](https://root-forum.cern.ch/t/tmva-plotdecisionboundary-c-with-custom-variables/24610 "2017-05-09T13:25:28Z")

</div>

Dear users, I am using PlotDecisionBoundary.C to plot decision boundaries for custom variables which I defined and then used to train a BDT. As a concrete example to illustrate the problem, I used factory-\>AddVariabl…

---

## [TMVA MLP output x-axis values](https://root-forum.cern.ch/t/tmva-mlp-output-x-axis-values/14510)

<div class="topic-metadata">

**Author:** [@disipio](https://root-forum.cern.ch/u/disipio)\
**Replies:** 1\
**Last updated:** [May 9, 2017, 1:19pm UTC](https://root-forum.cern.ch/t/tmva-mlp-output-x-axis-values/14510 "2017-05-09T13:19:53Z")

</div>

Dear TMVA users, I tried the TMVA MLP implementation to perform a regression task. If I plot the resulting distribution of the fitted parameter with TestTree-\>Draw( "eta" ) the shape looks good but the x-axis rang…

---

## [TMVA TrainAllMethods() Crash due to MethodBase::MethodBaseDir()](https://root-forum.cern.ch/t/tmva-trainallmethods-crash-due-to-methodbase-methodbasedir/24571)

<div class="topic-metadata">

**Author:** [@Chinmay](https://root-forum.cern.ch/u/Chinmay)\
**Replies:** 4\
**Last updated:** [April 28, 2017, 7:36am UTC](https://root-forum.cern.ch/t/tmva-trainallmethods-crash-due-to-methodbase-methodbasedir/24571 "2017-04-28T07:36:26Z")

</div>

Hi, I am using ROOTv6.08/04 on Fedora23. I am getting following crash when using TMVA after calling TrainAllMethods(). \_ MGR.TrainAllMethods() Info in \<MMLTrainer::TrainAllMethods\>: Factory 1 : Output file /home/chin…

---

## [TMVA Booking Error](https://root-forum.cern.ch/t/tmva-booking-error/24397)

<div class="topic-metadata">

**Author:** [@laramman2](https://root-forum.cern.ch/u/laramman2)\
**Replies:** 1\
**Last updated:** [April 24, 2017, 3:53pm UTC](https://root-forum.cern.ch/t/tmva-booking-error/24397 "2017-04-24T15:53:33Z")

</div>

Hi all, When I try to run my code in TMVA, it says "--- Factory : No analysis type for 1 classes and 0 regression targets." I checked the Factory.cxx source code and the error points me to line 706~718. I've checked m…

---

## [A variable with high separate power doesn't improve ROC curve](https://root-forum.cern.ch/t/a-variable-with-high-separate-power-doesnt-improve-roc-curve/24500)

<div class="topic-metadata">

**Author:** [@Binghuan\_Li](https://root-forum.cern.ch/u/Binghuan_Li)\
**Replies:** 2\
**Last updated:** [April 21, 2017, 10:41am UTC](https://root-forum.cern.ch/t/a-variable-with-high-separate-power-doesnt-improve-roc-curve/24500 "2017-04-21T10:41:11Z")

</div>

Dear expert, I'm currently use BDTG to for classification. we use 8 variables to discriminate signal and background, I try to add a new variable. The new variable has the highest separation power and highest var…

---

## [Opening TMVA GUI when the executable is compiled using \`make\` command](https://root-forum.cern.ch/t/opening-tmva-gui-when-the-executable-is-compiled-using-make-command/24493)

<div class="topic-metadata">

**Author:** [@Rajat\_Mondal](https://root-forum.cern.ch/u/Rajat_Mondal)\
**Replies:** 3\
**Last updated:** [April 21, 2017, 9:36am UTC](https://root-forum.cern.ch/t/opening-tmva-gui-when-the-executable-is-compiled-using-make-command/24493 "2017-04-21T09:36:43Z")

</div>

Hi, I can successfully compile and run the TMVAClassification.C file given in the directory /root/tutorials/tmva using the command $ make TMVAClassification; ./TMVAClassification. But despite having this line in the co…

---

## [DecisionTree Test](https://root-forum.cern.ch/t/decisiontree-test/24268)

<div class="topic-metadata">

**Author:** [@satyarth934](https://root-forum.cern.ch/u/satyarth934)\
**Replies:** 1\
**Last updated:** [April 6, 2017, 6:53am UTC](https://root-forum.cern.ch/t/decisiontree-test/24268 "2017-04-06T06:53:09Z")

</div>

Has anyone written any test for the TMVA DecisionTree Testing? Currently, I find tests only for DNN. Thanks.

---

## [PyMVA KMeans crash](https://root-forum.cern.ch/t/pymva-kmeans-crash/24136)

<div class="topic-metadata">

**Author:** [@satyarth934](https://root-forum.cern.ch/u/satyarth934)\
**Replies:** 2\
**Last updated:** [March 19, 2017, 11:38pm UTC](https://root-forum.cern.ch/t/pymva-kmeans-crash/24136 "2017-03-19T23:38:11Z")

</div>

Hi, I was trying to implement KMeans for PyMVA. But below is the crash stack trace that I get. I am unable to pinpoint the exact error. It would be really helpful if someone could look into this once and provide some hel…

---

## [TMVA Cuts ROC curve not monotonically decreasing](https://root-forum.cern.ch/t/tmva-cuts-roc-curve-not-monotonically-decreasing/22445)

<div class="topic-metadata">

**Author:** [@Shaktal](https://root-forum.cern.ch/u/Shaktal)\
**Replies:** 3\
**Last updated:** [March 16, 2017, 12:47pm UTC](https://root-forum.cern.ch/t/tmva-cuts-roc-curve-not-monotonically-decreasing/22445 "2017-03-16T12:47:18Z")

</div>

I have been using TMVA for evaluating different MVA techniques on a dataset, and when I plotted the ROC curve for Cuts (found by Simulated Annealing), I found something that I thought was rather odd. Instead of a mono…

---

## [Multiclass training of a BDT - how does it work?](https://root-forum.cern.ch/t/multiclass-training-of-a-bdt-how-does-it-work/23736)

<div class="topic-metadata">

**Author:** [@gwatts](https://root-forum.cern.ch/u/gwatts)\
**Replies:** 2\
**Last updated:** [February 14, 2017, 1:16pm UTC](https://root-forum.cern.ch/t/multiclass-training-of-a-bdt-how-does-it-work/23736 "2017-02-14T13:16:06Z")

</div>

I was looking through the ROOT TMVA documentation to try to sort out how the Multiclass mode works for TMVA training of a BDT. While it clearly supports it, I was not able to find a discussion of the algorithm that is us…

---

## [TMVA training with decreasing number of events](https://root-forum.cern.ch/t/tmva-training-with-decreasing-number-of-events/23557)

<div class="topic-metadata">

**Author:** [@mwojtas](https://root-forum.cern.ch/u/mwojtas)\
**Replies:** 4\
**Last updated:** [February 6, 2017, 3:58pm UTC](https://root-forum.cern.ch/t/tmva-training-with-decreasing-number-of-events/23557 "2017-02-06T15:58:31Z")

</div>

Dear experts, So I was trying to train several neural networks at once, but it seems that after training the first one (MLP\_10) on around 39k events, all the next ones (MLP\_11...MLP\_20) are trained on only 3.9k events.…

---

## [TMVA directory in root 6](https://root-forum.cern.ch/t/tmva-directory-in-root-6/23596)

<div class="topic-metadata">

**Author:** [@AbduAlhag](https://root-forum.cern.ch/u/AbduAlhag)\
**Replies:** 1\
**Last updated:** [January 24, 2017, 1:54pm UTC](https://root-forum.cern.ch/t/tmva-directory-in-root-6/23596 "2017-01-24T13:54:29Z")

</div>

Dear all; I need some help into why I cannot use root TMVA. Each time I try to run the example, i get the following: abdu@abdu-Lenovo-Y50-70-Touch:~/Downloads/root-6.08.04/tutorials/tmva$ root -l TMVARegression.C War…

---

## [TMVA - unwanted prefix to fWeightFileDir](https://root-forum.cern.ch/t/tmva-unwanted-prefix-to-fweightfiledir/22429)

<div class="topic-metadata">

**Author:** [@sadeh](https://root-forum.cern.ch/u/sadeh)\
**Replies:** 1\
**Last updated:** [January 10, 2017, 2:40pm UTC](https://root-forum.cern.ch/t/tmva-unwanted-prefix-to-fweightfiledir/22429 "2017-01-10T14:40:52Z")

</div>

Dear developers, Thanks for all of the improvements to TMVA! In the version, in ROOT v6.8, we have in src/Factory.cxx, the following: fFileDir=loader-\>GetName(); fFileDir+="/"+gConfig().GetIONames().f…

---

## [Some patches for BDTs](https://root-forum.cern.ch/t/some-patches-for-bdts/22392)

<div class="topic-metadata">

**Author:** [@behrenhoff](https://root-forum.cern.ch/u/behrenhoff)\
**Replies:** 2\
**Last updated:** [January 10, 2017, 1:23pm UTC](https://root-forum.cern.ch/t/some-patches-for-bdts/22392 "2017-01-10T13:23:01Z")

</div>

Hello TMVA experts, some might know that I did some patches to TMVA last year (pull request 100, now outdated). I have now rebased the uncontroversial ones (I hope) to the current master and left out the huge "Rewrite …

---

## [Binning of the Target variables in regression using BDTG method](https://root-forum.cern.ch/t/binning-of-the-target-variables-in-regression-using-bdtg-method/22449)

<div class="topic-metadata">

**Author:** [@binghuan](https://root-forum.cern.ch/u/binghuan)\
**Replies:** 0\
**Last updated:** [January 6, 2017, 5:16pm UTC](https://root-forum.cern.ch/t/binning-of-the-target-variables-in-regression-using-bdtg-method/22449 "2017-01-06T17:16:07Z")

</div>

Dear expert, We are contacting you because we are attempting to regress a given function using TMVA package and we obtain a wiered result. We are currently trying to regress the mass of the following system: lepton, …

---

## [TMVA fatal error: 'numpy/numpyconfig.h' file not found](https://root-forum.cern.ch/t/tmva-fatal-error-numpy-numpyconfig-h-file-not-found/22430)

<div class="topic-metadata">

**Author:** [@bmcrn](https://root-forum.cern.ch/u/bmcrn)\
**Replies:** 3\
**Last updated:** [January 4, 2017, 9:16pm UTC](https://root-forum.cern.ch/t/tmva-fatal-error-numpy-numpyconfig-h-file-not-found/22430 "2017-01-04T21:16:27Z")

</div>

I tried to install root Version 6.08.00 on Linux openSuse Leap 42.1. During cmake of TMVA following error occurs: \[ul\]\[ 64%\] Built target rootcling Scanning dependencies of target G\_\_PyMVA \[ 64%\] Generating G\_\_PyMVA.cxx…

---

## [Weights in TMVAClassificationApplication](https://root-forum.cern.ch/t/weights-in-tmvaclassificationapplication/22378)

<div class="topic-metadata">

**Author:** [@panagiotis\_bellos](https://root-forum.cern.ch/u/panagiotis_bellos)\
**Replies:** 1\
**Last updated:** [December 20, 2016, 9:16am UTC](https://root-forum.cern.ch/t/weights-in-tmvaclassificationapplication/22378 "2016-12-20T09:16:00Z")

</div>

hello everybody, I want to analyze a MC sample with TMVAClassificationApplication. I have already trained and tested the methods using discrete samples (with weighted events) for signal and background . So I want to an…

---

## [TMVA, BDT, Rank Variable : Variable Importance nan](https://root-forum.cern.ch/t/tmva-bdt-rank-variable-variable-importance-nan/22348)

<div class="topic-metadata">

**Author:** [@kostas\_pikounis](https://root-forum.cern.ch/u/kostas_pikounis)\
**Replies:** 2\
**Last updated:** [December 12, 2016, 11:02am UTC](https://root-forum.cern.ch/t/tmva-bdt-rank-variable-variable-importance-nan/22348 "2016-12-12T11:02:10Z")

</div>

Dear experts, I face a problem with the raking of my variables in a BDT and any help would be very much appreciated! In some of the configurations I tried this is what I see \[1\] and I would like to understand why I g…

---

## [TMVA vextor data immport](https://root-forum.cern.ch/t/tmva-vextor-data-immport/22255)

<div class="topic-metadata">

**Author:** [@Yubo](https://root-forum.cern.ch/u/Yubo)\
**Replies:** 3\
**Last updated:** [December 12, 2016, 5:11am UTC](https://root-forum.cern.ch/t/tmva-vextor-data-immport/22255 "2016-12-12T05:11:27Z")

</div>

in my tree, there is 3 vector leaves: vextorx; vextory; vextorz; which means the detecor hit information of tracks of a singal event. I want to train them by TMVA. How can I import the vector to TMVAfactory? Thank …

---

## [Save TMVA plot in png](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043)

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 25\
**Last updated:** [December 5, 2016, 1:36pm UTC](https://root-forum.cern.ch/t/save-tmva-plot-in-png/22043 "2016-12-05T13:36:32Z")

</div>

Dear experts, I'm using ROOT TMVA and the plots are save in eps. How can I save then in png? Regards

---

## [TMVA regression warning](https://root-forum.cern.ch/t/tmva-regression-warning/22211)

<div class="topic-metadata">

**Author:** [@binghuan](https://root-forum.cern.ch/u/binghuan)\
**Replies:** 1\
**Last updated:** [November 22, 2016, 7:54am UTC](https://root-forum.cern.ch/t/tmva-regression-warning/22211 "2016-11-22T07:54:28Z")

</div>

Dear expert, I'm using TMVA multi-regression, I got the following warning: --- MLP : ANN too complicated: #events=991 #synapses=1164 I find very little instruction about how to use regre…

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

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