# TMVA

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

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

---

## [Issue with Custom Metrics in TMVA](https://root-forum.cern.ch/t/issue-with-custom-metrics-in-tmva/30136)

<div class="topic-metadata">

**Author:** [@ashivkum](https://root-forum.cern.ch/u/ashivkum)\
**Replies:** 1\
**Last updated:** [August 7, 2018, 12:09pm UTC](https://root-forum.cern.ch/t/issue-with-custom-metrics-in-tmva/30136 "2018-08-07T12:09:34Z")

</div>

As I understand it, the way to use keras with TMVA is to define a model in Keras, save it to a file, then use TMVA factory.BookMethod() to import the model from the file. The issue with this is that when importing models…

---

## [BDT Input variable Plots Quality Graphics](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989)

<div class="topic-metadata">

**Author:** [@babar2141](https://root-forum.cern.ch/u/babar2141)\
**Replies:** 10\
**Last updated:** [August 3, 2018, 2:03pm UTC](https://root-forum.cern.ch/t/bdt-input-variable-plots-quality-graphics/29989 "2018-08-03T14:03:10Z")

</div>

Dear Experts, I am making BDT input variable plots using the TMVA file (please find the file TMVA. On lxplus what I am doing is: setupATLAS lsetup “root 6.06.02-x86\_64-slc6-gcc48-opt” (Same root version used for BDT …

---

## [Getting parameters of a tree with entries type TLorentzVector](https://root-forum.cern.ch/t/getting-parameters-of-a-tree-with-entries-type-tlorentzvector/29788)

<div class="topic-metadata">

**Author:** [@KarenDmn](https://root-forum.cern.ch/u/KarenDmn)\
**Replies:** 5\
**Last updated:** [August 2, 2018, 7:41am UTC](https://root-forum.cern.ch/t/getting-parameters-of-a-tree-with-entries-type-tlorentzvector/29788 "2018-08-02T07:41:12Z")

</div>

Hi, Root Forum: I have a tree with branches with entries that are TLorentzVector and I have to obtain pseudorapidity, transversal momentum etc. (This is in order to apply these parameters as cuts in the macro TMVAClassi…

---

## [Convert format of TMVA weight file from xml to root](https://root-forum.cern.ch/t/convert-format-of-tmva-weight-file-from-xml-to-root/30047)

<div class="topic-metadata">

**Author:** [@zhangb](https://root-forum.cern.ch/u/zhangb)\
**Replies:** 2\
**Last updated:** [July 31, 2018, 1:21pm UTC](https://root-forum.cern.ch/t/convert-format-of-tmva-weight-file-from-xml-to-root/30047 "2018-07-31T13:21:53Z")

</div>

Dear Expert, Is it possible to convert the BDT training output model.xml into some weight file in root format? Since I found that in some case, only weight file in root format is used to configure a BDT. And it is conf…

---

## [Error fraction plot in BDT method](https://root-forum.cern.ch/t/error-fraction-plot-in-bdt-method/29991)

<div class="topic-metadata">

**Author:** [@Einsiedler](https://root-forum.cern.ch/u/Einsiedler)\
**Replies:** 3\
**Last updated:** [July 30, 2018, 5:14pm UTC](https://root-forum.cern.ch/t/error-fraction-plot-in-bdt-method/29991 "2018-07-30T17:14:23Z")

</div>

Dear TMVA users, after running a BDT analysis on some data, I found a plot showing me the error fraction as a function of the number of trees. As the number of trees increases, the error fraction increases as well until…

---

## [Missing TMVA plots and histograms](https://root-forum.cern.ch/t/missing-tmva-plots-and-histograms/29973)

<div class="topic-metadata">

**Author:** [@chiarag](https://root-forum.cern.ch/u/chiarag)\
**Replies:** 1\
**Last updated:** [July 26, 2018, 1:13pm UTC](https://root-forum.cern.ch/t/missing-tmva-plots-and-histograms/29973 "2018-07-26T13:13:52Z")

</div>

Hi everyone, I am quite new in using root, so maybe I’m just doing some obvious mistake. I am using root6 to train some BDTs and after training them, I would like to see the Classifier Output Distributions (test and tr…

---

## [BookMVA in parallel jobs](https://root-forum.cern.ch/t/bookmva-in-parallel-jobs/29950)

<div class="topic-metadata">

**Author:** [@Yoann](https://root-forum.cern.ch/u/Yoann)\
**Replies:** 3\
**Last updated:** [July 26, 2018, 1:08pm UTC](https://root-forum.cern.ch/t/bookmva-in-parallel-jobs/29950 "2018-07-26T13:08:38Z")

</div>

Dear Rooters, In order to apply the TMVA classification to a dataset, I’m booking once the MVA method (BookMVA) and then looping over my input files (more than 1000) to evaluate the MVA classifiers for each event, using…

---

## [TMVA output file; no StreamerInfo found in "file.root"](https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821)

<div class="topic-metadata">

**Author:** [@adrian.gutierrez.vaz](https://root-forum.cern.ch/u/adrian.gutierrez.vaz)\
**Replies:** 4\
**Last updated:** [July 24, 2018, 6:16pm UTC](https://root-forum.cern.ch/t/tmva-output-file-no-streamerinfo-found-in-file-root/29821 "2018-07-24T18:16:06Z")

</div>

Hi TMVA experts, I am creating a new ROOT file so that useful output information of the TMVA script can be stored on it. Nevertheless, once I finish to train, test, and evaluate all methods and try to open the root file…

---

## [Reproducing regression results](https://root-forum.cern.ch/t/reproducing-regression-results/29850)

<div class="topic-metadata">

**Author:** [@tobychev](https://root-forum.cern.ch/u/tobychev)\
**Replies:** 1\
**Last updated:** [July 23, 2018, 10:56am UTC](https://root-forum.cern.ch/t/reproducing-regression-results/29850 "2018-07-23T10:56:49Z")

</div>

Hello, I have trained a MLP network on some data and used the TMVARegGUI to view the resulting reco - truth distribution (getting good results). I now want to test this network on a second set of data, and I’ve made a m…

---

## [Cuts in TMVAClassification macro](https://root-forum.cern.ch/t/cuts-in-tmvaclassification-macro/29909)

<div class="topic-metadata">

**Author:** [@KarenDmn](https://root-forum.cern.ch/u/KarenDmn)\
**Replies:** 1\
**Last updated:** [July 23, 2018, 10:51am UTC](https://root-forum.cern.ch/t/cuts-in-tmvaclassification-macro/29909 "2018-07-23T10:51:29Z")

</div>

Dear ROOT forum, Hello, I want to use as a cut the transverse momentum of a B meson and I have this modification of TMVAClassification.C dataloader-\>AddVariable( "B\_kaon\_px", "B\_kaon\_px", "units", 'F' ); dataloader-\>Ad…

---

## [Curl -o is not recongnized by root](https://root-forum.cern.ch/t/curl-o-is-not-recongnized-by-root/29737)

<div class="topic-metadata">

**Author:** [@XiaoyongHe](https://root-forum.cern.ch/u/XiaoyongHe)\
**Replies:** 9\
**Last updated:** [July 11, 2018, 12:53pm UTC](https://root-forum.cern.ch/t/curl-o-is-not-recongnized-by-root/29737 "2018-07-11T12:53:36Z")

</div>

Dear community, I am a new user in root / tmva. As I tried to run TMVAClassification in root under Windows, I got following message: “can not find command curl” It seems that the error happens at the statement : gSys…

---

## [AddVariable() problems with two-dimensional leaves](https://root-forum.cern.ch/t/addvariable-problems-with-two-dimensional-leaves/29563)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 4\
**Last updated:** [July 11, 2018, 9:31am UTC](https://root-forum.cern.ch/t/addvariable-problems-with-two-dimensional-leaves/29563 "2018-07-11T09:31:13Z")

</div>

polarizedReducedDeconvFisher.C (4.2 KB) polarizedReducedDeconvFisherFishy.txt (56.4 KB) The signal and background trees used in the attached script contain two branches with the same structure. These two branches conta…

---

## [TMVAClassification.C file giving error messages](https://root-forum.cern.ch/t/tmvaclassification-c-file-giving-error-messages/29714)

<div class="topic-metadata">

**Author:** [@aliciakelley97](https://root-forum.cern.ch/u/aliciakelley97)\
**Replies:** 1\
**Last updated:** [July 11, 2018, 9:27am UTC](https://root-forum.cern.ch/t/tmvaclassification-c-file-giving-error-messages/29714 "2018-07-11T09:27:43Z")

</div>

Hi, I am having troubles to get the TMVAClassification.C file that is on root’s webpage to work. I am receiving the following error message(s): error: no member named ‘AddVariable’ in ‘TMVA::Factory’ error: no matchin…

---

## [BDT.C macro in the TMVAGui Error in \<TXMLEngine::ParseFile\>: XML syntax error at line](https://root-forum.cern.ch/t/bdt-c-macro-in-the-tmvagui-error-in-txmlengine-parsefile-xml-syntax-error-at-line/29593)

<div class="topic-metadata">

**Author:** [@gusai](https://root-forum.cern.ch/u/gusai)\
**Replies:** 4\
**Last updated:** [July 3, 2018, 9:12am UTC](https://root-forum.cern.ch/t/bdt-c-macro-in-the-tmvagui-error-in-txmlengine-parsefile-xml-syntax-error-at-line/29593 "2018-07-03T09:12:20Z")

</div>

Dear Experts, I’m not able to visualise the BDT using the macro in the GUI due to this error: Error in TXMLEngine::ParseFile: XML syntax error at line 91 test1— Found 0 decision trees in weight file — Reading Tree 0 …

---

## [Wrong TMVA results in v6.14](https://root-forum.cern.ch/t/wrong-tmva-results-in-v6-14/29473)

<div class="topic-metadata">

**Author:** [@behrenhoff](https://root-forum.cern.ch/u/behrenhoff)\
**Replies:** 15\
**Last updated:** [July 2, 2018, 4:22pm UTC](https://root-forum.cern.ch/t/wrong-tmva-results-in-v6-14/29473 "2018-07-02T16:22:40Z")

</div>

---

## [MLP can not build the classifier plot](https://root-forum.cern.ch/t/mlp-can-not-build-the-classifier-plot/29508)

<div class="topic-metadata">

**Author:** [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Replies:** 3\
**Last updated:** [June 28, 2018, 11:29am UTC](https://root-forum.cern.ch/t/mlp-can-not-build-the-classifier-plot/29508 "2018-06-28T11:29:13Z")

</div>

Dear all experts, I have also tried the MLP model in TMVA package, but it shows: MLP : \[dataset\] : Loop over test events and fill histograms with classifier response… : : initia…

---

## [Standard backend DNN in TMVA](https://root-forum.cern.ch/t/standard-backend-dnn-in-tmva/29507)

<div class="topic-metadata">

**Author:** [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Replies:** 2\
**Last updated:** [June 26, 2018, 2:18pm UTC](https://root-forum.cern.ch/t/standard-backend-dnn-in-tmva/29507 "2018-06-26T14:18:46Z")

</div>

Dear all TMVA experts, Right now I want to try the DNN model in TMVA package, and I saw in the TMVA user guide that there is the The standard backend is the fall-back implementation and will work on any platform where…

---

## [DNN multi-target regression](https://root-forum.cern.ch/t/dnn-multi-target-regression/24724)

<div class="topic-metadata">

**Author:** [@mwojtas](https://root-forum.cern.ch/u/mwojtas)\
**Replies:** 14\
**Last updated:** [June 26, 2018, 2:17pm UTC](https://root-forum.cern.ch/t/dnn-multi-target-regression/24724 "2018-06-26T14:17:06Z")

</div>

Dear rooters, I have a quick question about DNN implementation. Previously, I was using it for multi-target regression with root v6.07 and it worked just fine. Recently I updated to 6.08 (6.07 became unavailable on cer…

---

## [TMVA application on MC systematics](https://root-forum.cern.ch/t/tmva-application-on-mc-systematics/29506)

<div class="topic-metadata">

**Author:** [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Replies:** 1\
**Last updated:** [June 26, 2018, 11:53am UTC](https://root-forum.cern.ch/t/tmva-application-on-mc-systematics/29506 "2018-06-26T11:53:03Z")

</div>

Dear all TMVA experts, I have a question on using TMVA applications on all the MC systematics. As the MC systematics(ups and downs) should be given to HistFitter tool to set the limit, is there a way to apply the obtai…

---

## [BaggedSampleFraction vs GradBaggingFraction](https://root-forum.cern.ch/t/baggedsamplefraction-vs-gradbaggingfraction/29483)

<div class="topic-metadata">

**Author:** [@afray](https://root-forum.cern.ch/u/afray)\
**Replies:** 3\
**Last updated:** [June 22, 2018, 2:31pm UTC](https://root-forum.cern.ch/t/baggedsamplefraction-vs-gradbaggingfraction/29483 "2018-06-22T14:31:04Z")

</div>

Hi, I’ve a fairly simple question. I’m currently training a BDT with the following settings: “NTrees=200:MaxDepth=4:nCuts=20:UseBaggedBoost=True:Shrinkage=0.1:BoostType=Grad:GradBaggingFraction=0.5:IgnoreNegWeightsInTr…

---

## [Usage of the BDTG standalone C++ class from TMVA](https://root-forum.cern.ch/t/usage-of-the-bdtg-standalone-c-class-from-tmva/29348)

<div class="topic-metadata">

**Author:** [@maxgiraud](https://root-forum.cern.ch/u/maxgiraud)\
**Replies:** 3\
**Last updated:** [June 19, 2018, 3:32pm UTC](https://root-forum.cern.ch/t/usage-of-the-bdtg-standalone-c-class-from-tmva/29348 "2018-06-19T15:32:08Z")

</div>

Hello TMVA experts, I am trying to use the BDTG standalone c++ class and having some trouble with it. The BDTG response is completely different when I compare it from the TMVAGUI and the autogenerated C++ class impleme…

---

## [TMVA problem: TMVAGui.C crashing](https://root-forum.cern.ch/t/tmva-problem-tmvagui-c-crashing/12363)

<div class="topic-metadata">

**Author:** [@cgreen](https://root-forum.cern.ch/u/cgreen)\
**Replies:** 8\
**Last updated:** [June 19, 2018, 3:17pm UTC](https://root-forum.cern.ch/t/tmva-problem-tmvagui-c-crashing/12363 "2018-06-19T15:17:55Z")

</div>

This is in the latest version in the SVN. TMVAClassification.C works fine (the weights folder looks ok, with all the xml files filled) but when it launches the GUI (or when I run TMVAGui.C separately) and I try clicking…

---

## [TMVA ROC-Curve Extraction and Modification](https://root-forum.cern.ch/t/tmva-roc-curve-extraction-and-modification/29395)

<div class="topic-metadata">

**Author:** [@Roderfeen](https://root-forum.cern.ch/u/Roderfeen)\
**Replies:** 6\
**Last updated:** [June 19, 2018, 10:46am UTC](https://root-forum.cern.ch/t/tmva-roc-curve-extraction-and-modification/29395 "2018-06-19T10:46:48Z")

</div>

ROOT Version 6.08/04 Platform Xubuntu 17.04 Compiler gcc6.3 Hello forum! After a successful TMVA run the ROC-Curves are saved in my fdmTMVA.root file. Each method gets a folder: fdmTMVA.root -\> TDirectoryFile::data…

---

## [Severe root version dependence on running time of BDT training](https://root-forum.cern.ch/t/severe-root-version-dependence-on-running-time-of-bdt-training/28784)

<div class="topic-metadata">

**Author:** [@willemv](https://root-forum.cern.ch/u/willemv)\
**Replies:** 6\
**Last updated:** [June 8, 2018, 4:56pm UTC](https://root-forum.cern.ch/t/severe-root-version-dependence-on-running-time-of-bdt-training/28784 "2018-06-08T16:56:40Z")

</div>

Dear experts, I am attempting to train a BDT to distinguish signal from background in my analysis, and I noticed something peculiar when switching from root version 6.10.09 to 6,12.07, namely that the running time of th…

---

## [Vector variable in TMC classification](https://root-forum.cern.ch/t/vector-variable-in-tmc-classification/28972)

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 11\
**Last updated:** [June 4, 2018, 3:32pm UTC](https://root-forum.cern.ch/t/vector-variable-in-tmc-classification/28972 "2018-06-04T15:32:50Z")

</div>

Dear experts, I have a vector branch in my root file and I parse it to the TMVA classification (1). The code run fine and the vector variable looks fine (2). If this makes sense, I wonder how can I parse this “vector v…

---

## [Error when compiling PyMethodBase.h ('numpy/numpyconfig.h' file not found)](https://root-forum.cern.ch/t/error-when-compiling-pymethodbase-h-numpy-numpyconfig-h-file-not-found/29177)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 4\
**Last updated:** [June 1, 2018, 9:39am UTC](https://root-forum.cern.ch/t/error-when-compiling-pymethodbase-h-numpy-numpyconfig-h-file-not-found/29177 "2018-06-01T09:39:45Z")

</div>

Dear TMVA experts, I’m not able to compile any code when including TMVA/PyMethodBase.h in ROOT 6.12/06. The error is: /usr/local/include/TMVA/PyMethodBase.h:47:10: fatal error: 'numpy/numpyconfig.h' file not found #in…

---

## [Standalone C++ response classes for pyKeras does not work. Class presents a series of typos](https://root-forum.cern.ch/t/standalone-c-response-classes-for-pykeras-does-not-work-class-presents-a-series-of-typos/29110)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 2\
**Last updated:** [May 27, 2018, 5:36am UTC](https://root-forum.cern.ch/t/standalone-c-response-classes-for-pykeras-does-not-work-class-presents-a-series-of-typos/29110 "2018-05-27T05:36:56Z")

</div>

Hi TMVA experts, I want to use TMVA as an interface for Keras. I have no problems in the training, but since my method needs to be deployed in a system where I do not control the root release (i.e. in a system with no t…

---

## [TMVA generated class does not compile, and unable to read xml file when using Keras interface](https://root-forum.cern.ch/t/tmva-generated-class-does-not-compile-and-unable-to-read-xml-file-when-using-keras-interface/28457)

<div class="topic-metadata">

**Author:** [@willemv](https://root-forum.cern.ch/u/willemv)\
**Replies:** 11\
**Last updated:** [May 23, 2018, 3:07pm UTC](https://root-forum.cern.ch/t/tmva-generated-class-does-not-compile-and-unable-to-read-xml-file-when-using-keras-interface/28457 "2018-05-23T15:07:05Z")

</div>

Dear experts, I trained a neural network using the TMVA interface to Keras, closely following the example given on: https://root.cern.ch/doc/v608/ClassificationKeras\_8py\_source.html The training and evaluation of the …

---

## [How to get training history using TMVA Keras interface?](https://root-forum.cern.ch/t/how-to-get-training-history-using-tmva-keras-interface/28799)

<div class="topic-metadata">

**Author:** [@jthomasw](https://root-forum.cern.ch/u/jthomasw)\
**Replies:** 17\
**Last updated:** [May 18, 2018, 9:21am UTC](https://root-forum.cern.ch/t/how-to-get-training-history-using-tmva-keras-interface/28799 "2018-05-18T09:21:45Z")

</div>

Dear TMVA users, I am training a deep multiclass classifier using the Keras interface and I was wondering if there is an easy way to obtain the training history in order to create monitoring plots of e.g. loss as a func…

---

## [Not showing all the tests in TMVA-DNN](https://root-forum.cern.ch/t/not-showing-all-the-tests-in-tmva-dnn/29038)

<div class="topic-metadata">

**Author:** [@harshit.prasad](https://root-forum.cern.ch/u/harshit.prasad)\
**Replies:** 4\
**Last updated:** [May 17, 2018, 12:34am UTC](https://root-forum.cern.ch/t/not-showing-all-the-tests-in-tmva-dnn/29038 "2018-05-17T00:34:33Z")

</div>

Hello everyone, I’m trying to run tests in the master branch (updated) of TMVA-DNN. There are in-total 33 DNN tests and 13 CNN tests. I’m running tests using ctest -R "TMVA-DNN\*" -j4 for DNN tests and for CNN tests, I’m…

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

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