# TMVA

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

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

---

## [TMVA GetSQRootMatrix](https://root-forum.cern.ch/t/tmva-getsqrootmatrix/11800)

<div class="topic-metadata">

**Author:** [@joshgc](https://root-forum.cern.ch/u/joshgc)\
**Replies:** 5\
**Last updated:** [February 28, 2022, 3:12pm UTC](https://root-forum.cern.ch/t/tmva-getsqrootmatrix/11800 "2022-02-28T15:12:48Z")

</div>

Hi Everyone, I'm trying to use CutsD and LikelihoodD in the TMVAClassification Macro. When I run root TMVAClassification.C I get this warning many times. --- Tools : error in matrix diagonalizat…

---

## [Assign and reference indices or names to TTrees or TChains used with TMVA::DataLoader::AddSignalTree() or TMVA::DataLoader::AddBackgroundTree()](https://root-forum.cern.ch/t/assign-and-reference-indices-or-names-to-ttrees-or-tchains-used-with-tmva-addsignaltree-or-tmva-addbackgroundtree/48815)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 8\
**Last updated:** [February 28, 2022, 11:54am UTC](https://root-forum.cern.ch/t/assign-and-reference-indices-or-names-to-ttrees-or-tchains-used-with-tmva-addsignaltree-or-tmva-addbackgroundtree/48815 "2022-02-28T11:54:26Z")

</div>

Hello, After writing output from a TMVA::Factory to a binary file, I can look at “className” under “TrainTree” and “TestTree” to determine which events in training and testing were used as signal or background. What I w…

---

## [Compiling ROOT with custom python version](https://root-forum.cern.ch/t/compiling-root-with-custom-python-version/48942)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 6\
**Last updated:** [February 25, 2022, 6:35pm UTC](https://root-forum.cern.ch/t/compiling-root-with-custom-python-version/48942 "2022-02-25T18:35:29Z")

</div>

Dear Root experts, I need to train some DNN with Keras 2.2.4. In order to do so I need to use Tensorflow 1.15. In order to install Tensorflow 1.15 I need to use Python \<3.8. I can do all of this in a virtual environment…

---

## [The number of dense units for classification](https://root-forum.cern.ch/t/the-number-of-dense-units-for-classification/48898)

<div class="topic-metadata">

**Author:** [@littlepi](https://root-forum.cern.ch/u/littlepi)\
**Replies:** 4\
**Last updated:** [February 24, 2022, 8:30am UTC](https://root-forum.cern.ch/t/the-number-of-dense-units-for-classification/48898 "2022-02-24T08:30:07Z")

</div>

Hi, I have a simple question about classification. For a binary classification, the number of units of the last dense layer should be 1 or 2? In tutorial “TMVA\_RNN\_Classification.C”, the last layer is a dense layer with…

---

## [Probability integral-transformation](https://root-forum.cern.ch/t/probability-integral-transformation/48797)

<div class="topic-metadata">

**Author:** [@shubh](https://root-forum.cern.ch/u/shubh)\
**Replies:** 6\
**Last updated:** [February 17, 2022, 8:41am UTC](https://root-forum.cern.ch/t/probability-integral-transformation/48797 "2022-02-17T08:41:17Z")

</div>

Hello Everyone, I am a newbie to TMVA and using it for separating the signal from the background. I want to use the μ-transformed BDT output in the fit. In μ-transformation (probability integral transformation), where t…

---

## [Custom separation type in TMVA](https://root-forum.cern.ch/t/custom-separation-type-in-tmva/48768)

<div class="topic-metadata">

**Author:** [@zubov\_dmitriy\_97](https://root-forum.cern.ch/u/zubov_dmitriy_97)\
**Replies:** 3\
**Last updated:** [February 15, 2022, 7:54am UTC](https://root-forum.cern.ch/t/custom-separation-type-in-tmva/48768 "2022-02-15T07:54:03Z")

</div>

Dear experts, I use the BDTG method for the classification task. And I wonder if there is a way to switch SeparationType parameter to a user function. For example I would replace the Gini Index or the stat significance …

---

## [Spectator variables in correlation matrix](https://root-forum.cern.ch/t/spectator-variables-in-correlation-matrix/48735)

<div class="topic-metadata">

**Author:** [@ffedericaa](https://root-forum.cern.ch/u/ffedericaa)\
**Replies:** 3\
**Last updated:** [February 10, 2022, 5:47pm UTC](https://root-forum.cern.ch/t/spectator-variables-in-correlation-matrix/48735 "2022-02-10T17:47:02Z")

</div>

Hi all, is there a way to insert the spectator variables inside the correlation matrix for signal and background?Thanks in advance!

---

## [Why do I get negative values for bkg eff. when using 4 variables, but not when using 3 or less?](https://root-forum.cern.ch/t/why-do-i-get-negative-values-for-bkg-eff-when-using-4-variables-but-not-when-using-3-or-less/48551)

<div class="topic-metadata">

**Author:** [@naikal\_mc](https://root-forum.cern.ch/u/naikal_mc)\
**Replies:** 5\
**Last updated:** [February 7, 2022, 9:26am UTC](https://root-forum.cern.ch/t/why-do-i-get-negative-values-for-bkg-eff-when-using-4-variables-but-not-when-using-3-or-less/48551 "2022-02-07T09:26:30Z")

</div>

Hello all, I am using TMVA with “Cuts” method and I keep getting negative values for bkg efficiency (and hence no cuts) when I add 4 variables to the dataloader. When using 3 or less variables, I don’t get this problem …

---

## [Adding "PDFInterpol=logspline" to TMVA::Factory?](https://root-forum.cern.ch/t/adding-pdfinterpol-logspline-to-tmva-factory/42433)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 4\
**Last updated:** [February 7, 2022, 8:47am UTC](https://root-forum.cern.ch/t/adding-pdfinterpol-logspline-to-tmva-factory/42433 "2022-02-07T08:47:03Z")

</div>

Without knowing definitively the underlying distribution of a TMVA response, I have been considering fitting the PDF histograms of the response using PDFInterpol=KDE as opposed to one of the PDFInterpol=Spline{0-5} optio…

---

## [TMVA kCuts output wrong](https://root-forum.cern.ch/t/tmva-kcuts-output-wrong/48573)

<div class="topic-metadata">

**Author:** [@Chipper](https://root-forum.cern.ch/u/Chipper)\
**Replies:** 3\
**Last updated:** [January 31, 2022, 12:35pm UTC](https://root-forum.cern.ch/t/tmva-kcuts-output-wrong/48573 "2022-01-31T12:35:19Z")

</div>

Hello everyone, When I’m using kCuts to optimize nine variables cuts, there are some wrong output that one variable should be less than a certain value, and I set the upper limit to a small value (such as 0.0606) and d…

---

## [TMVA Install in Ubuntu 20.04 LTS](https://root-forum.cern.ch/t/tmva-install-in-ubuntu-20-04-lts/48610)

<div class="topic-metadata">

**Author:** [@Najimuddin\_Khan](https://root-forum.cern.ch/u/Najimuddin_Khan)\
**Replies:** 2\
**Last updated:** [January 31, 2022, 10:26am UTC](https://root-forum.cern.ch/t/tmva-install-in-ubuntu-20-04-lts/48610 "2022-01-31T10:26:15Z")

</div>

Hi, I have installed root5 and TMVA4.2.0 and it is working perfectly. I have installed latest root on ubuntu 20.04LTS, but I could not install TMVA. It shows error about .rootmap. Please guide me. I also tried to in…

---

## [Calculate BDT score with python based xgboost BDT](https://root-forum.cern.ch/t/calculate-bdt-score-with-python-based-xgboost-bdt/48558)

<div class="topic-metadata">

**Author:** [@PunitSharma](https://root-forum.cern.ch/u/PunitSharma)\
**Replies:** 1\
**Last updated:** [January 26, 2022, 2:02pm UTC](https://root-forum.cern.ch/t/calculate-bdt-score-with-python-based-xgboost-bdt/48558 "2022-01-26T14:02:35Z")

</div>

Hi All, I am trying to use python-based xgboost for my BDT analysis. How do I calculate the BDT score after I am able to use “model.predict\_proba”? I am looking for a snippet or a mathematical definition of BDT score a…

---

## [How to optimize a function other than S/sqrt(S+B)](https://root-forum.cern.ch/t/how-to-optimize-a-function-other-than-s-sqrt-s-b/48179)

<div class="topic-metadata">

**Author:** [@kbya99](https://root-forum.cern.ch/u/kbya99)\
**Replies:** 4\
**Last updated:** [January 19, 2022, 4:14am UTC](https://root-forum.cern.ch/t/how-to-optimize-a-function-other-than-s-sqrt-s-b/48179 "2022-01-19T04:14:35Z")

</div>

Hello, I am using the BDT framework (AdaBoost algorithm) for a BSM signal vs SM background discrimination problem. After training the BDT, I would like to get the significance at the optimal cut. By default, TMVA tries …

---

## [Difficulties on obtaining DNN predictions on PyROOT](https://root-forum.cern.ch/t/difficulties-on-obtaining-dnn-predictions-on-pyroot/48408)

<div class="topic-metadata">

**Author:** [@mrli](https://root-forum.cern.ch/u/mrli)\
**Replies:** 6\
**Last updated:** [January 18, 2022, 10:54am UTC](https://root-forum.cern.ch/t/difficulties-on-obtaining-dnn-predictions-on-pyroot/48408 "2022-01-18T10:54:44Z")

</div>

Hello everyone, I would appreciat it if someone could help me. I have trained a binary classification DNN model and wanted to obtain its confusion matrix on python. So I tried to get the predictions of testing data by…

---

## [Signal Efficiency chart in BDT output](https://root-forum.cern.ch/t/signal-efficiency-chart-in-bdt-output/48346)

<div class="topic-metadata">

**Author:** [@annacostelle](https://root-forum.cern.ch/u/annacostelle)\
**Replies:** 3\
**Last updated:** [January 12, 2022, 5:26pm UTC](https://root-forum.cern.ch/t/signal-efficiency-chart-in-bdt-output/48346 "2022-01-12T17:26:21Z")

</div>

This is a silly question I know, but when you train, test, and evaluate methods in the TMVA toolkit, it shows you a little chart with the signal efficiency of training and test data. However, it lists different values “@…

---

## [About the TMVA: How to give weight factor to Signal and Background tree](https://root-forum.cern.ch/t/about-the-tmva-how-to-give-weight-factor-to-signal-and-background-tree/48218)

<div class="topic-metadata">

**Author:** [@Vipul\_Bairathi](https://root-forum.cern.ch/u/Vipul_Bairathi)\
**Replies:** 4\
**Last updated:** [January 5, 2022, 4:55pm UTC](https://root-forum.cern.ch/t/about-the-tmva-how-to-give-weight-factor-to-signal-and-background-tree/48218 "2022-01-05T16:55:10Z")

</div>

Dear all, We are using the TMVA code namely: TMVAClassification.C with BDT method. We have created two root TTrees samples with 2000 events for each Signal and Background. These TTrees included a few input variables (c…

---

## [Background response does not go to zero](https://root-forum.cern.ch/t/background-response-does-not-go-to-zero/47986)

<div class="topic-metadata">

**Author:** [@meNikkie](https://root-forum.cern.ch/u/meNikkie)\
**Replies:** 4\
**Last updated:** [December 24, 2021, 2:29pm UTC](https://root-forum.cern.ch/t/background-response-does-not-go-to-zero/47986 "2021-12-24T14:29:54Z")

</div>

Dear experts, please, may I ask for your kind help/explanation. I’m using the TMVA to select some signal decays and suppress the combinatorial background. The TMVA response plot (see attached) shows a very long tail fo…

---

## [Does the standalone C++ response class support cross validation?](https://root-forum.cern.ch/t/does-the-standalone-c-response-class-support-cross-validation/48069)

<div class="topic-metadata">

**Author:** [@Dongliang](https://root-forum.cern.ch/u/Dongliang)\
**Replies:** 1\
**Last updated:** [December 16, 2021, 10:12am UTC](https://root-forum.cern.ch/t/does-the-standalone-c-response-class-support-cross-validation/48069 "2021-12-16T10:12:48Z")

</div>

Dear experts, I’m checking to see if I can use the standalone C++ response class code to apply a BDT trained using CrossValidation. In the TMVA tutorial scripts TMVACrossValidation.C and TMVACrossValidationApplication.C,…

---

## [TMVA::RReader::AddVariable doesn't accept doubles](https://root-forum.cern.ch/t/tmva-addvariable-doesnt-accept-doubles/47891)

<div class="topic-metadata">

**Author:** [@avilla](https://root-forum.cern.ch/u/avilla)\
**Replies:** 2\
**Last updated:** [December 6, 2021, 10:24am UTC](https://root-forum.cern.ch/t/tmva-addvariable-doesnt-accept-doubles/47891 "2021-12-06T10:24:33Z")

</div>

Hi, while working with the TMVA::RReader object I faced the problem of the method AddVariable only accepting Float\_t variables (or Int\_t), but not Double\_t. This was already brought up quite a long time ago, and I see t…

---

## [Pythia8 Hadronize the stable Dark matter particles](https://root-forum.cern.ch/t/pythia8-hadronize-the-stable-dark-matter-particles/47942)

<div class="topic-metadata">

**Author:** [@Faisal\_muhammad\_Haya](https://root-forum.cern.ch/u/Faisal_muhammad_Haya)\
**Replies:** 1\
**Last updated:** [December 5, 2021, 8:31am UTC](https://root-forum.cern.ch/t/pythia8-hadronize-the-stable-dark-matter-particles/47942 "2021-12-05T08:31:01Z")

</div>

Dear Root and Pythia8 experts, We are trying to analyze the channel related to charged higgs pair production pp–\>H+H–\>W+W-+2S, where S is the dark matter candidate. We are using Inert Doublet Model and running our code …

---

## [Change in OptimizeTuningParameters](https://root-forum.cern.ch/t/change-in-optimizetuningparameters/47528)

<div class="topic-metadata">

**Author:** [@ali\_dokhani](https://root-forum.cern.ch/u/ali_dokhani)\
**Replies:** 10\
**Last updated:** [December 2, 2021, 12:13pm UTC](https://root-forum.cern.ch/t/change-in-optimizetuningparameters/47528 "2021-12-02T12:13:39Z")

</div>

I wanted to change OptimizeTuningParameters.I tried to change with Runtime Polymorphism. I created a new class inheriting from TMVA::MethodBDT and redefined the OptimizeTuningParameters function. I got \*\*\* Break \*\*\* segm…

---

## [Variable transformation using TMVA](https://root-forum.cern.ch/t/variable-transformation-using-tmva/47532)

<div class="topic-metadata">

**Author:** [@11133](https://root-forum.cern.ch/u/11133)\
**Replies:** 6\
**Last updated:** [November 14, 2021, 12:06pm UTC](https://root-forum.cern.ch/t/variable-transformation-using-tmva/47532 "2021-11-14T12:06:04Z")

</div>

Hi all, Does anyone face the problem when transforming some set of variables from the entire variable list? Eventually, I would like to apply Gaussian transformation on just some of the variables not for all, so followi…

---

## [Queries about TMVA Application](https://root-forum.cern.ch/t/queries-about-tmva-application/40000)

<div class="topic-metadata">

**Author:** [@Saumyenk](https://root-forum.cern.ch/u/Saumyenk)\
**Replies:** 26\
**Last updated:** [November 9, 2021, 5:21pm UTC](https://root-forum.cern.ch/t/queries-about-tmva-application/40000 "2021-11-09T17:21:42Z")

</div>

Hi, I was running TMVA Application after training and testing. But the output histogram that I got doesn’t seem right. I am getting only a vertical peak at ‘-0.2’ (as in the attached figure). Could you check the macro …

---

## [You have asked for histogram MVA\_EFF\_BvsS which does not seem to exist in \*Results\* .. better don't use it](https://root-forum.cern.ch/t/you-have-asked-for-histogram-mva-eff-bvss-which-does-not-seem-to-exist-in-results-better-dont-use-it/47540)

<div class="topic-metadata">

**Author:** [@hshengli06](https://root-forum.cern.ch/u/hshengli06)\
**Replies:** 4\
**Last updated:** [November 9, 2021, 5:15pm UTC](https://root-forum.cern.ch/t/you-have-asked-for-histogram-mva-eff-bvss-which-does-not-seem-to-exist-in-results-better-dont-use-it/47540 "2021-11-09T17:15:17Z")

</div>

Hi, I did a TMVA training using CutsSA method and got the warning messages as following: — ResultsCutsSA : You have asked for histogram MVA\_EFF\_BvsS which does not seem to exist in Results … better don’t us…

---

## [TMVA SOFIE: undefined reference to sgemm\_](https://root-forum.cern.ch/t/tmva-sofie-undefined-reference-to-sgemm/47248)

<div class="topic-metadata">

**Author:** [@qiutt](https://root-forum.cern.ch/u/qiutt)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 1:22pm UTC](https://root-forum.cern.ch/t/tmva-sofie-undefined-reference-to-sgemm/47248 "2021-10-15T13:22:59Z")

</div>

I am trying to convert a pytorch model to C++ code using the example here: https://github.com/root-project/root/blob/master/tutorials/tmva/TMVA\_SOFIE\_PyTorch.C. I can not compile the generated hxx file due to “undefined…

---

## [Data types of branches from input trees all changed to floats in output](https://root-forum.cern.ch/t/data-types-of-branches-from-input-trees-all-changed-to-floats-in-output/47242)

<div class="topic-metadata">

**Author:** [@grmercadd](https://root-forum.cern.ch/u/grmercadd)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 7:13am UTC](https://root-forum.cern.ch/t/data-types-of-branches-from-input-trees-all-changed-to-floats-in-output/47242 "2021-10-15T07:13:14Z")

</div>

Hi all, I have TMVA output .root files, that i produced using the BDT classifier. All of the data types in the branches from the original input trees have been changed to floats in the output files. Is there a way to re…

---

## [Using TMVA to tune a model hyper parameters](https://root-forum.cern.ch/t/using-tmva-to-tune-a-model-hyper-parameters/47130)

<div class="topic-metadata">

**Author:** [@wx2017](https://root-forum.cern.ch/u/wx2017)\
**Replies:** 2\
**Last updated:** [October 11, 2021, 3:26pm UTC](https://root-forum.cern.ch/t/using-tmva-to-tune-a-model-hyper-parameters/47130 "2021-10-11T15:26:50Z")

</div>

I’m wondering if it’s possible to use TMVA to tune model hyper parameters. In another word, for any custom-made model (i.e. not those in TMVA package) with a list of hyper parameters, can TMVA run the model and automatic…

---

## [TMVA Interpretation](https://root-forum.cern.ch/t/tmva-interpretation/47091)

<div class="topic-metadata">

**Author:** [@anwey](https://root-forum.cern.ch/u/anwey)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 1:34pm UTC](https://root-forum.cern.ch/t/tmva-interpretation/47091 "2021-10-07T13:34:22Z")

</div>

Hello Everyone, Im working on TMVA classification using three classifiers BDT, Likelihood and MLP. im getting following plots and now im unable to interpret that what these plots tells. Cut efficiences and optimal cut va…

---

## [TMVA multiclass configuration](https://root-forum.cern.ch/t/tmva-multiclass-configuration/46733)

<div class="topic-metadata">

**Author:** [@zhwenyu](https://root-forum.cern.ch/u/zhwenyu)\
**Replies:** 5\
**Last updated:** [October 6, 2021, 10:45am UTC](https://root-forum.cern.ch/t/tmva-multiclass-configuration/46733 "2021-10-06T10:45:10Z")

</div>

Dear experts, I am trying to do a multiclass classification with TMVA. I train with “BDTG” method. I have a signal and two backgrounds, totally 3 classes. The training can run, but I saw "Background" still come out in …

---

## [Problems with TMVA while running python](https://root-forum.cern.ch/t/problems-with-tmva-while-running-python/46837)

<div class="topic-metadata">

**Author:** [@11133](https://root-forum.cern.ch/u/11133)\
**Replies:** 4\
**Last updated:** [October 6, 2021, 8:50am UTC](https://root-forum.cern.ch/t/problems-with-tmva-while-running-python/46837 "2021-10-06T08:50:06Z")

</div>

Dear TMVA experts, I installed the latest version of the ROOT and python. I need to run the python project with Keras API. However, the following crash had happened while I tried to run my python script: File “keras0\_…

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

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