# TMVA

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

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

---

## [How to plot ROC curve for a specific BDT response value?](https://root-forum.cern.ch/t/how-to-plot-roc-curve-for-a-specific-bdt-response-value/37674)

<div class="topic-metadata">

**Author:** [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Replies:** 4\
**Last updated:** [January 28, 2020, 10:20am UTC](https://root-forum.cern.ch/t/how-to-plot-roc-curve-for-a-specific-bdt-response-value/37674 "2020-01-28T10:20:21Z")

</div>

Hi everyone, I have a naive question. I am trying to evaluate the performance of BDT. I define a “working point” as choosing a BDT response value within \[-1, 1\] and want to determine the effect of this chosen cut by ROC…

---

## [Problems with reproducibility of BDTscore](https://root-forum.cern.ch/t/problems-with-reproducibility-of-bdtscore/37706)

<div class="topic-metadata">

**Author:** [@DVKrasnop](https://root-forum.cern.ch/u/DVKrasnop)\
**Replies:** 3\
**Last updated:** [January 27, 2020, 5:17pm UTC](https://root-forum.cern.ch/t/problems-with-reproducibility-of-bdtscore/37706 "2020-01-27T17:17:19Z")

</div>

Dear ROOT supporting team, I found a weird behaviour of TMVA in terms of reproducibility of BDTscore depending on how input parameters are set. I tried two ways of setting variables for reader: hard coding before call…

---

## [Bradley-Fayyad-Reina algorithm implementation using TMVA](https://root-forum.cern.ch/t/bradley-fayyad-reina-algorithm-implementation-using-tmva/37480)

<div class="topic-metadata">

**Author:** [@PRISHIta123](https://root-forum.cern.ch/u/PRISHIta123)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 4:33pm UTC](https://root-forum.cern.ch/t/bradley-fayyad-reina-algorithm-implementation-using-tmva/37480 "2020-01-27T16:33:04Z")

</div>

I would like to try implementing the BFR Algorithm for cluster analysis. It makes use of 3 datasets: 1.The retained set (RS) The set of data points which are not recognized to belong to any cluster, and need to be retai…

---

## [factory.GetROCCurve loader is crashing](https://root-forum.cern.ch/t/factory-getroccurve-loader-is-crashing/37451)

<div class="topic-metadata">

**Author:** [@PRISHIta123](https://root-forum.cern.ch/u/PRISHIta123)\
**Replies:** 1\
**Last updated:** [January 27, 2020, 3:30pm UTC](https://root-forum.cern.ch/t/factory-getroccurve-loader-is-crashing/37451 "2020-01-27T15:30:00Z")

</div>

When trying to generate the ROC Curves to visualize the performance of the C++ Classification algorithms, the loader crashes with the message Break segmentation violation. This is the stack trace that was returned: #0 …

---

## [Signal and background differ only by event weights - Is discrimination possible?](https://root-forum.cern.ch/t/signal-and-background-differ-only-by-event-weights-is-discrimination-possible/37304)

<div class="topic-metadata">

**Author:** [@Anshul\_Kapoor](https://root-forum.cern.ch/u/Anshul_Kapoor)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 3:08pm UTC](https://root-forum.cern.ch/t/signal-and-background-differ-only-by-event-weights-is-discrimination-possible/37304 "2020-01-27T15:08:03Z")

</div>

I want to differentiate between signal (S) and background (B), but the only difference between them “technically” is that the event weights are different. Say I have a pT distribution for process S. Now if I want to get…

---

## [Switch to CentOS7 6.18.04 from SL6 6.14.04 Causing Segmentation Violation Problem in TMVA::ROCCalc](https://root-forum.cern.ch/t/switch-to-centos7-6-18-04-from-sl6-6-14-04-causing-segmentation-violation-problem-in-tmva-roccalc/37165)

<div class="topic-metadata">

**Author:** [@oguloncel](https://root-forum.cern.ch/u/oguloncel)\
**Replies:** 6\
**Last updated:** [January 16, 2020, 6:04pm UTC](https://root-forum.cern.ch/t/switch-to-centos7-6-18-04-from-sl6-6-14-04-causing-segmentation-violation-problem-in-tmva-roccalc/37165 "2020-01-16T18:04:39Z")

</div>

Hi, I recently try to switch to CentOS7 and ROOT 6.18.04 from current setup of SL6 with 6.14.04. When I try CentOS7 with 6.14.08 it works as well. But when I tried to run my code (which runs succesfully in old setup) wi…

---

## [TMVA installation error i have tried a lot of times with root version 6.18-04](https://root-forum.cern.ch/t/tmva-installation-error-i-have-tried-a-lot-of-times-with-root-version-6-18-04/37419)

<div class="topic-metadata">

**Author:** [@MFarooq786](https://root-forum.cern.ch/u/MFarooq786)\
**Replies:** 1\
**Last updated:** [January 4, 2020, 9:48am UTC](https://root-forum.cern.ch/t/tmva-installation-error-i-have-tried-a-lot-of-times-with-root-version-6-18-04/37419 "2020-01-04T09:48:51Z")

</div>

Compiling src/GeneticAlgorithm.cxx … Compiling src/TSpline2.cxx … Compiling src/ResultsMulticlass.cxx … Compiling src/PDF.cxx … In file included from ./TMVA/GeneticAlgorithm.h:44, from src/GeneticAlgorithm.cxx:38: ./TM…

---

## [PyKeras neural network - event-byevent weights](https://root-forum.cern.ch/t/pykeras-neural-network-event-byevent-weights/37338)

<div class="topic-metadata">

**Author:** [@Anshul\_Kapoor](https://root-forum.cern.ch/u/Anshul_Kapoor)\
**Replies:** 0\
**Last updated:** [December 27, 2019, 9:23am UTC](https://root-forum.cern.ch/t/pykeras-neural-network-event-byevent-weights/37338 "2019-12-27T09:23:10Z")

</div>

I am currently trying to train a neural network using a sequential model from Keras but event-by-event weights are not working for me. The signal and background actually only differ in event-by-event weights, the raw di…

---

## [How to set numbers of core used by DNN?](https://root-forum.cern.ch/t/how-to-set-numbers-of-core-used-by-dnn/37278)

<div class="topic-metadata">

**Author:** [@cxwx](https://root-forum.cern.ch/u/cxwx)\
**Replies:** 2\
**Last updated:** [December 20, 2019, 4:20pm UTC](https://root-forum.cern.ch/t/how-to-set-numbers-of-core-used-by-dnn/37278 "2019-12-20T16:20:04Z")

</div>

Hi all: how could I set the number of cores used by DNN?

---

## [TMVA GPU utilization](https://root-forum.cern.ch/t/tmva-gpu-utilization/37196)

<div class="topic-metadata">

**Author:** [@fbartels](https://root-forum.cern.ch/u/fbartels)\
**Replies:** 3\
**Last updated:** [December 17, 2019, 10:43am UTC](https://root-forum.cern.ch/t/tmva-gpu-utilization/37196 "2019-12-17T10:43:09Z")

</div>

Hi all, Unfortunately, I cannot get the GPU implementation of DNN running. We have an NVidia RTX 2080 Super in our machine running CentOs 7. I installed the latest NVidia driver 440.33.01 instead of nouveau and CUDA 10…

---

## [Save TMVA::Reader as binary to .root file?](https://root-forum.cern.ch/t/save-tmva-reader-as-binary-to-root-file/37139)

<div class="topic-metadata">

**Author:** [@V.L.Ivanov](https://root-forum.cern.ch/u/V.L.Ivanov)\
**Replies:** 2\
**Last updated:** [December 14, 2019, 5:17pm UTC](https://root-forum.cern.ch/t/save-tmva-reader-as-binary-to-root-file/37139 "2019-12-14T17:17:29Z")

</div>

Dear TMVA team, I’m dealing with a set of ~4000 BDT classifiers, trained for the signal/background separation in specific angle-momenta ranges. Each time in the beginning of weights application I’m reading all the xml-f…

---

## [Is it possible to load a pre-trained network weight to new trained](https://root-forum.cern.ch/t/is-it-possible-to-load-a-pre-trained-network-weight-to-new-trained/37036)

<div class="topic-metadata">

**Author:** [@cxwx](https://root-forum.cern.ch/u/cxwx)\
**Replies:** 2\
**Last updated:** [December 4, 2019, 3:09pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-load-a-pre-trained-network-weight-to-new-trained/37036 "2019-12-04T15:09:38Z")

</div>

I found a topic, but it is long time ago. Has it been solved? Pre-training initialization of Neural-net weights

---

## [Multithreading in TMVA::GeneticAlgorithm](https://root-forum.cern.ch/t/multithreading-in-tmva-geneticalgorithm/37039)

<div class="topic-metadata">

**Author:** [@jniedzie](https://root-forum.cern.ch/u/jniedzie)\
**Replies:** 2\
**Last updated:** [December 4, 2019, 3:00pm UTC](https://root-forum.cern.ch/t/multithreading-in-tmva-geneticalgorithm/37039 "2019-12-04T15:00:39Z")

</div>

Hi, I’d like to ask if there is an option to run multithreaded optimization using TMVA::GeneticAlgorithm. I couldn’t find anything in the class reference nor in the user guide. Thanks! Jeremi

---

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

<div class="topic-metadata">

**Author:** [@11116](https://root-forum.cern.ch/u/11116)\
**Replies:** 1\
**Last updated:** [November 20, 2019, 12:31pm UTC](https://root-forum.cern.ch/t/problem-running-tmva/36865 "2019-11-20T12:31:16Z")

</div>

I am new to TMVA. So far, I define my signal and background region and prepare an output to use for TMVA. I am using BDT(boosted decision tree) method. My question is when I using the small size samples (10000000 events…

---

## [TMVA::CrossValidation](https://root-forum.cern.ch/t/tmva-crossvalidation/36877)

<div class="topic-metadata">

**Author:** [@Nathanael](https://root-forum.cern.ch/u/Nathanael)\
**Replies:** 1\
**Last updated:** [November 18, 2019, 3:05pm UTC](https://root-forum.cern.ch/t/tmva-crossvalidation/36877 "2019-11-18T15:05:33Z")

</div>

Dear experts, I’m trying to run TMVACrossValidation.C as ROOT macro with root -l TMVAClassification.C but I get the following error message: /path/to/TMVACrossValidation.C:127:26: error: no matching constructor for ini…

---

## [Problem Installing TMVA](https://root-forum.cern.ch/t/problem-installing-tmva/24548)

<div class="topic-metadata">

**Author:** [@jon\_esteban](https://root-forum.cern.ch/u/jon_esteban)\
**Replies:** 8\
**Last updated:** [November 5, 2019, 7:08pm UTC](https://root-forum.cern.ch/t/problem-installing-tmva/24548 "2019-11-05T19:08:02Z")

</div>

Hi, I’m having problems with the installation of the TMVA. I have followed all the steps appearing in the user guide that you provide but apparently I am doing something wrong what it is probable cause I’m new with Root. …

---

## [Bug report with tensorflow 2.0 with ConfigProto](https://root-forum.cern.ch/t/bug-report-with-tensorflow-2-0-with-configproto/36540)

<div class="topic-metadata">

**Author:** [@cxwx](https://root-forum.cern.ch/u/cxwx)\
**Replies:** 0\
**Last updated:** [October 28, 2019, 12:14pm UTC](https://root-forum.cern.ch/t/bug-report-with-tensorflow-2-0-with-configproto/36540 "2019-10-28T12:14:35Z")

</div>

tmva tutorial bug with tf2.0 module ‘tensorflow’ has no attribute ‘ConfigProto’ ConfigProto disappeared in tf 2.0

---

## [The evalation of TMVA method](https://root-forum.cern.ch/t/the-evalation-of-tmva-method/36266)

<div class="topic-metadata">

**Author:** [@dlin](https://root-forum.cern.ch/u/dlin)\
**Replies:** 15\
**Last updated:** [October 25, 2019, 11:05pm UTC](https://root-forum.cern.ch/t/the-evalation-of-tmva-method/36266 "2019-10-25T23:05:29Z")

</div>

Dear TMVA experts, I am a beginner to learning TMVA. I am using small size samples of signal and background to do the training and testing with SVM model, and then applied the results to a large signal sample. I expec…

---

## [Error using TMVA on lxplus](https://root-forum.cern.ch/t/error-using-tmva-on-lxplus/36458)

<div class="topic-metadata">

**Author:** [@chenf](https://root-forum.cern.ch/u/chenf)\
**Replies:** 7\
**Last updated:** [October 24, 2019, 1:08pm UTC](https://root-forum.cern.ch/t/error-using-tmva-on-lxplus/36458 "2019-10-24T13:08:55Z")

</div>

Hi, I failed to run TMVAClassification.C with default settings on lxplus. Is there anything I need to set up before using TMVA? There are bunches of errors: Processing ./TMVAClassification.C(“Fisher,Likelihood”)… In f…

---

## [How to apply BDT cut value?](https://root-forum.cern.ch/t/how-to-apply-bdt-cut-value/20805)

<div class="topic-metadata">

**Author:** [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Replies:** 8\
**Last updated:** [October 21, 2019, 1:24pm UTC](https://root-forum.cern.ch/t/how-to-apply-bdt-cut-value/20805 "2019-10-21T13:24:43Z")

</div>

Hi all, I am new to TMVA. So far, I define my signal and background region and prepare an output to use for TMVA. I am using BDT(boosted decision tree) method. I know how to obtain optimal cut value from the histogram …

---

## [Negative weight when using BDTG](https://root-forum.cern.ch/t/negative-weight-when-using-bdtg/36389)

<div class="topic-metadata">

**Author:** [@xinst](https://root-forum.cern.ch/u/xinst)\
**Replies:** 3\
**Last updated:** [October 21, 2019, 1:17pm UTC](https://root-forum.cern.ch/t/negative-weight-when-using-bdtg/36389 "2019-10-21T13:17:32Z")

</div>

Dear Experts, I meet a problem with tmva. My train samples contain some negative weights. After applying BDTG , the “overtraining check” failed: — Found directory for method: BDT::BDTG containing MVA\_BDTG\_S/\_B — Mean …

---

## [Error: cannot open file "TMVA/DataLoader.h"](https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421)

<div class="topic-metadata">

**Author:** [@Rishabh\_Raturi](https://root-forum.cern.ch/u/Rishabh_Raturi)\
**Replies:** 2\
**Last updated:** [October 19, 2019, 1:58pm UTC](https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421 "2019-10-19T13:58:25Z")

</div>

Hey! I’m trying to implement BDT for separating signal and background events. I’ve modified the TMVAClassification.C code according to my problem. But when I’m compiling it in root in lxplus6 cluster its showing me: Er…

---

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

<div class="topic-metadata">

**Author:** [@anprodri](https://root-forum.cern.ch/u/anprodri)\
**Replies:** 4\
**Last updated:** [October 17, 2019, 6:16pm UTC](https://root-forum.cern.ch/t/kolmogorov-smirnov-test-mean/36385 "2019-10-17T18:16:05Z")

</div>

Hi again! I have a question about KS-Test, it is related to a previous post answer: I couldn’t find any info about KS-test on the guide, and I still don’t understand why it’s optimal value is 0.5? how is it calculated…

---

## [Can I figure the control plots when I use the method "BDTG"](https://root-forum.cern.ch/t/can-i-figure-the-control-plots-when-i-use-the-method-bdtg/36325)

<div class="topic-metadata">

**Author:** [@melodynk](https://root-forum.cern.ch/u/melodynk)\
**Replies:** 2\
**Last updated:** [October 16, 2019, 10:07am UTC](https://root-forum.cern.ch/t/can-i-figure-the-control-plots-when-i-use-the-method-bdtg/36325 "2019-10-16T10:07:49Z")

</div>

Hi,everyone. Regarding the toolkit of TMVA, I find that when I use “BDT” method( root -l ./TMVAClassification.C(“BDT”) ) ,the GUI pad could show me some analytical figures,for example the BDT boost weight distribution…

---

## [Is there an easy way to optimize variables in TMVA?](https://root-forum.cern.ch/t/is-there-an-easy-way-to-optimize-variables-in-tmva/36307)

<div class="topic-metadata">

**Author:** [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Replies:** 2\
**Last updated:** [October 12, 2019, 10:28pm UTC](https://root-forum.cern.ch/t/is-there-an-easy-way-to-optimize-variables-in-tmva/36307 "2019-10-12T22:28:21Z")

</div>

Hi all, I want to optimize my input variables for BDT as removing them one by one and check their performance by ROC curve for each step. I know this method is kind of a common sense in optimizing the variables, so I wo…

---

## [Isolate test sample](https://root-forum.cern.ch/t/isolate-test-sample/36302)

<div class="topic-metadata">

**Author:** [@anprodri](https://root-forum.cern.ch/u/anprodri)\
**Replies:** 1\
**Last updated:** [October 10, 2019, 4:14pm UTC](https://root-forum.cern.ch/t/isolate-test-sample/36302 "2019-10-10T16:14:40Z")

</div>

Hello TMVA users! I was wondering if there’s any method of isolating the test sample from a model saved in a root file, so I can make graphs and use metrics from other libraries to calculate precision, accuracy, etc. T…

---

## [Unbalanced data TMVA](https://root-forum.cern.ch/t/unbalanced-data-tmva/36218)

<div class="topic-metadata">

**Author:** [@anprodri](https://root-forum.cern.ch/u/anprodri)\
**Replies:** 4\
**Last updated:** [October 10, 2019, 3:42pm UTC](https://root-forum.cern.ch/t/unbalanced-data-tmva/36218 "2019-10-10T15:42:03Z")

</div>

Dear TMVA users, Does TMVA have a system to manage unbalanced data for training ML models, like BDT or DNN for example? If it does, is it automatic or do I have to specify a command? Thanks in advance. Regards.

---

## [Delphes-root file or root for TMVA](https://root-forum.cern.ch/t/delphes-root-file-or-root-for-tmva/36034)

<div class="topic-metadata">

**Author:** [@hhamdell](https://root-forum.cern.ch/u/hhamdell)\
**Replies:** 7\
**Last updated:** [October 2, 2019, 12:58pm UTC](https://root-forum.cern.ch/t/delphes-root-file-or-root-for-tmva/36034 "2019-10-02T12:58:30Z")

</div>

Hi, I am new here regarding using TMVA and root as well. I have many background processes and a specific signal, generated using madgraph(with pythia for showering/hadronization and delphes for detector simulation), My …

---

## [Extract BDT score of training and testing samples](https://root-forum.cern.ch/t/extract-bdt-score-of-training-and-testing-samples/33609)

<div class="topic-metadata">

**Author:** [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Replies:** 10\
**Last updated:** [September 26, 2019, 3:24pm UTC](https://root-forum.cern.ch/t/extract-bdt-score-of-training-and-testing-samples/33609 "2019-09-26T15:24:17Z")

</div>

Dear TMVA users, I was wondering if there was any simple way to extract the BDT Score of the training and testing samples in TMVAClassification.C to a txt file (for example). Thanks in advance :slight\_smile:

---

## [Monte Carlo event weights in BDT](https://root-forum.cern.ch/t/monte-carlo-event-weights-in-bdt/36023)

<div class="topic-metadata">

**Author:** [@anprodri](https://root-forum.cern.ch/u/anprodri)\
**Replies:** 3\
**Last updated:** [September 26, 2019, 5:41pm UTC](https://root-forum.cern.ch/t/monte-carlo-event-weights-in-bdt/36023 "2019-09-26T17:41:18Z")

</div>

Hello! I’m training a BDT and a DNN with real data and some Monte Carlo simulated data. As real data has weight equal to 1, and simulated data has weights bigger or smaller than 1, I was wondering how could I include th…

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

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