# TMVA

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

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

---

## [Setting a global TMVA debug flag](https://root-forum.cern.ch/t/setting-a-global-tmva-debug-flag/31576)

<div class="topic-metadata">

**Author:** [@pversch](https://root-forum.cern.ch/u/pversch)\
**Replies:** 2\
**Last updated:** [November 13, 2018, 10:45pm UTC](https://root-forum.cern.ch/t/setting-a-global-tmva-debug-flag/31576 "2018-11-13T22:45:19Z")

</div>

Hi, In the TMVA code I keep finding print messages of the following form: Log() \<\< kDEBUG \<\< “This is a debug message” \<\< Endl; How can I enable these print messages? I tried adding the string option VerbosityLevel=De…

---

## [TMVAGui binning 1D](https://root-forum.cern.ch/t/tmvagui-binning-1d/31550)

<div class="topic-metadata">

**Author:** [@hviemann](https://root-forum.cern.ch/u/hviemann)\
**Replies:** 3\
**Last updated:** [November 13, 2018, 4:15pm UTC](https://root-forum.cern.ch/t/tmvagui-binning-1d/31550 "2018-11-13T16:15:54Z")

</div>

Dear experts, I would like to increase the binning of option 4b (Classifier Output Distributions…) I find in the TMVAGui. I tried something that won’t work in the interactive session; e.g.: root \[0\] TMVA::TMVAGui(“fil…

---

## [HyperParameterOptimisation](https://root-forum.cern.ch/t/hyperparameteroptimisation/31326)

<div class="topic-metadata">

**Author:** [@arolling](https://root-forum.cern.ch/u/arolling)\
**Replies:** 9\
**Last updated:** [November 2, 2018, 10:28am UTC](https://root-forum.cern.ch/t/hyperparameteroptimisation/31326 "2018-11-02T10:28:00Z")

</div>

Dear experts, Can someone help explain to me what the number of folds are that you specify for hyper parameter optimisation (HPO) in TMVA? From my understanding (which could well be wrong): HPO should work with cross …

---

## [TMVA::DataLoader draw variables and their correlations](https://root-forum.cern.ch/t/tmva-dataloader-draw-variables-and-their-correlations/31368)

<div class="topic-metadata">

**Author:** [@mhstar](https://root-forum.cern.ch/u/mhstar)\
**Replies:** 2\
**Last updated:** [October 31, 2018, 7:59pm UTC](https://root-forum.cern.ch/t/tmva-dataloader-draw-variables-and-their-correlations/31368 "2018-10-31T19:59:04Z")

</div>

I’m using ROOT version 6.14.04. I am wondering how to plot variables and their correlations through TMVA::DataLoader which used to have the functions TMVA::DataLoader::DrawInputVariable() and TMVA::DataLoader::DrawCorrel…

---

## [Issue about the different TMVA results when use different computer](https://root-forum.cern.ch/t/issue-about-the-different-tmva-results-when-use-different-computer/31328)

<div class="topic-metadata">

**Author:** [@Hai\_Jiang1](https://root-forum.cern.ch/u/Hai_Jiang1)\
**Replies:** 4\
**Last updated:** [October 31, 2018, 3:17pm UTC](https://root-forum.cern.ch/t/issue-about-the-different-tmva-results-when-use-different-computer/31328 "2018-10-31T15:17:27Z")

</div>

Dear all TMVA experts, My events selection randomization setup is: dataloader-\>PrepareTrainingAndTestTree( mycuts, "SplitMode=Random:NormMode=NumEvents:!V" ); I just found that if I used different compu…

---

## [Problem w/ (Py)TMVA std output in ROOT v6.14.04](https://root-forum.cern.ch/t/problem-w-py-tmva-std-output-in-root-v6-14-04/31281)

<div class="topic-metadata">

**Author:** [@mmilesi](https://root-forum.cern.ch/u/mmilesi)\
**Replies:** 4\
**Last updated:** [October 26, 2018, 11:28am UTC](https://root-forum.cern.ch/t/problem-w-py-tmva-std-output-in-root-v6-14-04/31281 "2018-10-26T11:28:46Z")

</div>

Hello, I am developing a Python (3) package to manage inputs and booking of different MVA suites and methods etc. I am seeing a problem with the TMVA stdout, namely it doesn’t get printed out to screen even if the prop…

---

## [How to save an existing histogram into TTree](https://root-forum.cern.ch/t/how-to-save-an-existing-histogram-into-ttree/31264)

<div class="topic-metadata">

**Author:** [@psiddire](https://root-forum.cern.ch/u/psiddire)\
**Replies:** 3\
**Last updated:** [October 25, 2018, 11:10am UTC](https://root-forum.cern.ch/t/how-to-save-an-existing-histogram-into-ttree/31264 "2018-10-25T11:10:40Z")

</div>

I have some histograms stored in a TDirectoryFile in a root file. I am trying to save some of those histograms into a TTree in a new root file. I tried the following but I am unable to write the histograms to the tree: f…

---

## [Spectator variables in TMVA evaluation](https://root-forum.cern.ch/t/spectator-variables-in-tmva-evaluation/31245)

<div class="topic-metadata">

**Author:** [@valerio.formato](https://root-forum.cern.ch/u/valerio.formato)\
**Replies:** 1\
**Last updated:** [October 24, 2018, 12:02pm UTC](https://root-forum.cern.ch/t/spectator-variables-in-tmva-evaluation/31245 "2018-10-24T12:02:01Z")

</div>

Dear ROOTers, I have a weight file for a BDT trained with TMVA and I’m creating a reader class to be used in the analysis chain. I noticed that if the weight files declares some spectators and I don’t add them to the r…

---

## [Missing CorrelationMatrix histos in GUI?](https://root-forum.cern.ch/t/missing-correlationmatrix-histos-in-gui/31179)

<div class="topic-metadata">

**Author:** [@Nicolas92](https://root-forum.cern.ch/u/Nicolas92)\
**Replies:** 5\
**Last updated:** [October 23, 2018, 9:11am UTC](https://root-forum.cern.ch/t/missing-correlationmatrix-histos-in-gui/31179 "2018-10-23T09:11:16Z")

</div>

Dear TMVA experts, when I try to inspect the output of my BDT training with the GUI, all the functionalities are working apart from “Input Variable Linear Correlation Coefficients” ; I get the following error message : …

---

## [Select stainless steel sink high durable material](https://root-forum.cern.ch/t/select-stainless-steel-sink-high-durable-material/31045)

<div class="topic-metadata">

**Author:** [@Hoang\_Quang\_Tuyen](https://root-forum.cern.ch/u/Hoang_Quang_Tuyen)\
**Replies:** 2\
**Last updated:** [October 22, 2018, 9:46am UTC](https://root-forum.cern.ch/t/select-stainless-steel-sink-high-durable-material/31045 "2018-10-22T09:46:22Z")

</div>

Stainless steel sinks are made of durable stainless steel is the most popular products on the market today. Not only shiny, luxurious, but also capable of being impacted, high durability, not rusty when used frequently w…

---

## [Forcing root to read the files to newer version](https://root-forum.cern.ch/t/forcing-root-to-read-the-files-to-newer-version/31125)

<div class="topic-metadata">

**Author:** [@arunkumar](https://root-forum.cern.ch/u/arunkumar)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 8:28am UTC](https://root-forum.cern.ch/t/forcing-root-to-read-the-files-to-newer-version/31125 "2018-10-16T08:28:25Z")

</div>

Hi, I am trying to use root v6.14 in order to use the latest version of TMVA for my analysis. I am able to train the MVA methods using my standalone code. But at the application part, I am getting a segmentation viola…

---

## [How to apply TMVA classifier to the \*.root samples for analysis?](https://root-forum.cern.ch/t/how-to-apply-tmva-classifier-to-the-root-samples-for-analysis/31096)

<div class="topic-metadata">

**Author:** [@hepex001](https://root-forum.cern.ch/u/hepex001)\
**Replies:** 1\
**Last updated:** [October 13, 2018, 8:16pm UTC](https://root-forum.cern.ch/t/how-to-apply-tmva-classifier-to-the-root-samples-for-analysis/31096 "2018-10-13T20:16:25Z")

</div>

Dear Experts, I am quite new in TMVA. Using the tutorial TMVAClassification.C I am able to train and test the TMVA Classifier. Now I want to apply TMVA classifier to the \*.root samples for analysis, so that I will ha…

---

## [TMVA with std::vector as input variable](https://root-forum.cern.ch/t/tmva-with-std-vector-as-input-variable/20375)

<div class="topic-metadata">

**Author:** [@hcohen](https://root-forum.cern.ch/u/hcohen)\
**Replies:** 4\
**Last updated:** [October 12, 2018, 8:00am UTC](https://root-forum.cern.ch/t/tmva-with-std-vector-as-input-variable/20375 "2018-10-12T08:00:40Z")

</div>

Hi, I've got a classic classification in my analysis, and using BDT to train on the MC. My events has a large number of properties (jet1pt, angular distributions, el\_pt....) But, in my TTree i also got a std::vector na…

---

## [PyKeras application : how is the output computed?](https://root-forum.cern.ch/t/pykeras-application-how-is-the-output-computed/30922)

<div class="topic-metadata">

**Author:** [@Nicolas92](https://root-forum.cern.ch/u/Nicolas92)\
**Replies:** 4\
**Last updated:** [October 9, 2018, 12:20pm UTC](https://root-forum.cern.ch/t/pykeras-application-how-is-the-output-computed/30922 "2018-10-09T12:20:09Z")

</div>

Dear TMVA experts, I have started playing around with the PyKeras method, but I could not yet understand how the NN output is computed (for application). I believe the relevant function is Double\_t MethodPyKeras::GetMv…

---

## [Output all the files at once](https://root-forum.cern.ch/t/output-all-the-files-at-once/31025)

<div class="topic-metadata">

**Author:** [@CHYEH](https://root-forum.cern.ch/u/CHYEH)\
**Replies:** 2\
**Last updated:** [October 8, 2018, 3:53pm UTC](https://root-forum.cern.ch/t/output-all-the-files-at-once/31025 "2018-10-08T15:53:38Z")

</div>

Dear all: I’m the beginner for TMVA, and want to ask one question: Because I just used classification codes to output the BDT plots using ’ if (!gROOT-\>IsBatch()) TMVA::TMVAGui( outfileName ) \[ In the tutorial codes \]…

---

## [TMVA application?](https://root-forum.cern.ch/t/tmva-application/30990)

<div class="topic-metadata">

**Author:** [@vincityhn1](https://root-forum.cern.ch/u/vincityhn1)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 1:47pm UTC](https://root-forum.cern.ch/t/tmva-application/30990 "2018-10-05T13:47:46Z")

</div>

Dear everyone, 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 obtained TMVA…

---

## [About TMVA multi-background](https://root-forum.cern.ch/t/about-tmva-multi-background/30665)

<div class="topic-metadata">

**Author:** [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Replies:** 2\
**Last updated:** [September 19, 2018, 6:19am UTC](https://root-forum.cern.ch/t/about-tmva-multi-background/30665 "2018-09-19T06:19:54Z")

</div>

Dear All, I’m new to TMVA, when I tried TMVAMultipleBackgroundExample.C, the output is distributions and each background. My question is: is the multi-background results (training background separately) be the same as…

---

## [Tensorflow with TMVA](https://root-forum.cern.ch/t/tensorflow-with-tmva/30590)

<div class="topic-metadata">

**Author:** [@ashivkum](https://root-forum.cern.ch/u/ashivkum)\
**Replies:** 4\
**Last updated:** [September 19, 2018, 5:18am UTC](https://root-forum.cern.ch/t/tensorflow-with-tmva/30590 "2018-09-19T05:18:54Z")

</div>

I understand that the canonical way to do machine learning using TMVA is to generate a model in keras, save it to file, then load it into TMVA so that it can be trained. However, Keras is severely lacking in metrics that…

---

## [Multiple input layer with TMVA Keras interface?](https://root-forum.cern.ch/t/multiple-input-layer-with-tmva-keras-interface/30653)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 7:49pm UTC](https://root-forum.cern.ch/t/multiple-input-layer-with-tmva-keras-interface/30653 "2018-09-17T19:49:25Z")

</div>

Dear TMVA expert, is it possible to use Keras functional API in order to have multiple input? Something similar to this: https://keras.io/getting-started/functional-api-guide/#multi-input-and-multi-output-models Th…

---

## [How do MethodCategory work?](https://root-forum.cern.ch/t/how-do-methodcategory-work/26886)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 15\
**Last updated:** [September 17, 2018, 7:40pm UTC](https://root-forum.cern.ch/t/how-do-methodcategory-work/26886 "2018-09-17T19:40:56Z")

</div>

Dear TMVA expert, I’m trying to use MethodCategory with a BDT method. I get very weird and absurd results that make me curious on how categories work in TMVA. My categorization is really simple: in about 5% of my event…

---

## [Blas dependency of cmake target ROOT::TMVA](https://root-forum.cern.ch/t/blas-dependency-of-cmake-target-root-tmva/30536)

<div class="topic-metadata">

**Author:** [@pseyfert](https://root-forum.cern.ch/u/pseyfert)\
**Replies:** 2\
**Last updated:** [September 16, 2018, 1:41pm UTC](https://root-forum.cern.ch/t/blas-dependency-of-cmake-target-root-tmva/30536 "2018-09-16T13:41:02Z")

</div>

Building our software against the lcg dev version dev4 we noticed that libTMVA.so (ldd /cvmfs/sft-nightlies.cern.ch/lcg/nightlies/dev4/\<day\>/ROOT/v6-14-00-patches/x86\_64-centos7-gcc8-opt/lib/libTMVA.so) depends on libope…

---

## [ReLU activation function for MLP](https://root-forum.cern.ch/t/relu-activation-function-for-mlp/30569)

<div class="topic-metadata">

**Author:** [@annamascellani](https://root-forum.cern.ch/u/annamascellani)\
**Replies:** 1\
**Last updated:** [September 9, 2018, 2:47pm UTC](https://root-forum.cern.ch/t/relu-activation-function-for-mlp/30569 "2018-09-09T14:47:37Z")

</div>

Hi, I’m using the MLP argument for BookMethod of the Factory class for a regression problem. I want to use the ReLU activation function, but this is not among the predefined options. Is there a way to use it with the sam…

---

## [Plot final signal/background distributions, weight problem](https://root-forum.cern.ch/t/plot-final-signal-background-distributions-weight-problem/30475)

<div class="topic-metadata">

**Author:** [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Replies:** 10\
**Last updated:** [September 1, 2018, 2:18pm UTC](https://root-forum.cern.ch/t/plot-final-signal-background-distributions-weight-problem/30475 "2018-09-01T14:18:47Z")

</div>

Dear Sir, In my TMVA study, I have ~10 background, all background with different weighting (cross section size). After TMVA, I wish to plot the signal and background distributions for the input variables, to see the TM…

---

## [Vector entries in TMVAClassification and Application](https://root-forum.cern.ch/t/vector-entries-in-tmvaclassification-and-application/30124)

<div class="topic-metadata">

**Author:** [@KarenDmn](https://root-forum.cern.ch/u/KarenDmn)\
**Replies:** 5\
**Last updated:** [August 30, 2018, 1:38pm UTC](https://root-forum.cern.ch/t/vector-entries-in-tmvaclassification-and-application/30124 "2018-08-30T13:38:08Z")

</div>

Hello dear ROOTforum, I have trouble with TMVA’s macros. The tree source has branches type vector, in the part of dataloader I put this dataloader-\>AddVariable( "B\_J\_px2", "B\_J\_px2", "units", 'F' ); and works fine. …

---

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

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 10\
**Last updated:** [August 28, 2018, 8:27pm UTC](https://root-forum.cern.ch/t/tmva-application/29322 "2018-08-28T20:27:41Z")

</div>

Dear experts, I run TMVA classification and here (1) you can see that the bkg pick 0.1 with a distribution btw around \[0, 0.8\] Then I run TMVA application on these bkg sample and fill the DNN variable. You can see (2) …

---

## [Classification problem on modified macros](https://root-forum.cern.ch/t/classification-problem-on-modified-macros/30341)

<div class="topic-metadata">

**Author:** [@Hokyeong](https://root-forum.cern.ch/u/Hokyeong)\
**Replies:** 1\
**Last updated:** [August 21, 2018, 12:45pm UTC](https://root-forum.cern.ch/t/classification-problem-on-modified-macros/30341 "2018-08-21T12:45:28Z")

</div>

Dear experts I am trying to modify TMVAClassification.C to test the SVM classification I made two different data files, one working by macros the other one is failed I get the following error message \<FATAL\> : \<GetSe…

---

## [Shortcuts to add array elements with TMVA::DataLoader::AddVariable()](https://root-forum.cern.ch/t/shortcuts-to-add-array-elements-with-tmva-addvariable/30176)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 7:53pm UTC](https://root-forum.cern.ch/t/shortcuts-to-add-array-elements-with-tmva-addvariable/30176 "2018-08-10T19:53:28Z")

</div>

I have trees containing 4 leaves of length 10 double arrays. I would like to prepare a sequence of TMVA::DataLoader objects with each array’s elements as individual variables. If a given DataLoader object contains elemen…

---

## [Classification Application problem](https://root-forum.cern.ch/t/classification-application-problem/29987)

<div class="topic-metadata">

**Author:** [@KarenDmn](https://root-forum.cern.ch/u/KarenDmn)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 9:33pm UTC](https://root-forum.cern.ch/t/classification-application-problem/29987 "2018-08-07T21:33:00Z")

</div>

Hello, dear ROOT forum: I made a modification in the ClassificationApplication macro, and it compiles well but at the time to execute it, sends me an error. Here is part of the modified code, using namespace TMVA; voi…

---

## [Getting the sensitivty and specificity array](https://root-forum.cern.ch/t/getting-the-sensitivty-and-specificity-array/30105)

<div class="topic-metadata">

**Author:** [@divyakuttan](https://root-forum.cern.ch/u/divyakuttan)\
**Replies:** 5\
**Last updated:** [August 7, 2018, 1:46pm UTC](https://root-forum.cern.ch/t/getting-the-sensitivty-and-specificity-array/30105 "2018-08-07T13:46:46Z")

</div>

Dear Experts, Sorry for my ignorance. I want to plot the ROC curve manually for which I need the values of sensitivity and specificity array. Will you please help me to get them ?

---

## [Warning: null passed to a callee that requires a non-null argument \[-Wnonnull\]](https://root-forum.cern.ch/t/warning-null-passed-to-a-callee-that-requires-a-non-null-argument-wnonnull/30106)

<div class="topic-metadata">

**Author:** [@KarenDmn](https://root-forum.cern.ch/u/KarenDmn)\
**Replies:** 3\
**Last updated:** [August 7, 2018, 1:41pm UTC](https://root-forum.cern.ch/t/warning-null-passed-to-a-callee-that-requires-a-non-null-argument-wnonnull/30106 "2018-08-07T13:41:40Z")

</div>

Hello dear ROOTForum I am modifying theTMVAClassificationApplication.C with my own root file, and I get this: warning: null passed to a callee that requires a non-null argument \[-Wnonnull\] std::cout \<\< "--- TMVAClas…

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

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