# TMVA

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

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

---

## [TMVA::mvaeffs crashes when disabling graphical output](https://root-forum.cern.ch/t/tmva-mvaeffs-crashes-when-disabling-graphical-output/40198)

<div class="topic-metadata">

**Author:** [@jruizvid](https://root-forum.cern.ch/u/jruizvid)\
**Replies:** 5\
**Last updated:** [September 28, 2020, 1:38pm UTC](https://root-forum.cern.ch/t/tmva-mvaeffs-crashes-when-disabling-graphical-output/40198 "2020-09-28T13:38:54Z")

</div>

Dear ROOT experts, I want to save the plots from the tmva macros without printing them out. However TMVA::mvaeffs triggers segmentation violation if the graphical output is disabled with gROOT-\>SetBatch(kTRUE). #includ…

---

## [Some bugs in TMVA MultiClassGui](https://root-forum.cern.ch/t/some-bugs-in-tmva-multiclassgui/41114)

<div class="topic-metadata">

**Author:** [@avenkate](https://root-forum.cern.ch/u/avenkate)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 3:37pm UTC](https://root-forum.cern.ch/t/some-bugs-in-tmva-multiclassgui/41114 "2020-09-25T15:37:13Z")

</div>

Dear experts, I am writing to report some bugs that I have noticed in TMVAMultiClassGui The relevant ROOT Version is 6.22.02. I am invoking it on lxplus using source /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.22.02/x8…

---

## [How to obtain BDT score at specific signal efficiency?](https://root-forum.cern.ch/t/how-to-obtain-bdt-score-at-specific-signal-efficiency/41536)

<div class="topic-metadata">

**Author:** [@kawaho](https://root-forum.cern.ch/u/kawaho)\
**Replies:** 4\
**Last updated:** [September 23, 2020, 9:25am UTC](https://root-forum.cern.ch/t/how-to-obtain-bdt-score-at-specific-signal-efficiency/41536 "2020-09-23T09:25:34Z")

</div>

Hi friends, I am looking for way to output the BDT score that corresponds to a specific signal efficiency. Specifically, I want to know what BDT score corresponds to signal efficiency in steps of 1% changes, like what i…

---

## [TMVA Classification](https://root-forum.cern.ch/t/tmva-classification/41527)

<div class="topic-metadata">

**Author:** [@Fogssy](https://root-forum.cern.ch/u/Fogssy)\
**Replies:** 4\
**Last updated:** [September 22, 2020, 10:58am UTC](https://root-forum.cern.ch/t/tmva-classification/41527 "2020-09-22T10:58:04Z")

</div>

Hi everyone, I wanted to something about the TMVA classification. According to this wiki: http://www.ep.ph.bham.ac.uk/twiki/bin/view/General/TMVA I need to get a weights file as an output, after the TMVA training (e.g…

---

## [Segmentation fault using new method "AddVariablesArray"](https://root-forum.cern.ch/t/segmentation-fault-using-new-method-addvariablesarray/41436)

<div class="topic-metadata">

**Author:** [@TheZardoz](https://root-forum.cern.ch/u/TheZardoz)\
**Replies:** 8\
**Last updated:** [September 17, 2020, 12:33pm UTC](https://root-forum.cern.ch/t/segmentation-fault-using-new-method-addvariablesarray/41436 "2020-09-17T12:33:38Z")

</div>

Hi, I tried to use the RNN from TMVA using the example : https://root.cern/doc/master/TMVA\_\_RNN\_\_Classification\_8C.html This example use the new function “AddVariablesArray” For my case i used a tree with 500 samples…

---

## [How is PCA variable transformation applied to LDA?](https://root-forum.cern.ch/t/how-is-pca-variable-transformation-applied-to-lda/41111)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 4\
**Last updated:** [September 10, 2020, 9:54pm UTC](https://root-forum.cern.ch/t/how-is-pca-variable-transformation-applied-to-lda/41111 "2020-09-10T21:54:53Z")

</div>

Hello, I was reading the descriptions for Variable decorrelation (4.1.2) and Principal component decomposition (4.1.3) in the TMVA User’s Guide. Between the two sections a distinction is made between signal (U=S) and ba…

---

## [Where to find $ROOTSYS/tutorials/tmva/test/TMVAGui.C](https://root-forum.cern.ch/t/where-to-find-rootsys-tutorials-tmva-test-tmvagui-c/21878)

<div class="topic-metadata">

**Author:** [@calbet](https://root-forum.cern.ch/u/calbet)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 11:52am UTC](https://root-forum.cern.ch/t/where-to-find-rootsys-tutorials-tmva-test-tmvagui-c/21878 "2020-09-07T11:52:26Z")

</div>

Dear experts, in the TMVAUsersGuide, it is write that we can run $ROOTSYS/tmva/test/TMVAGui.C in a root session, but I do not see this file, indeed the test directory is missing \[1\]. Do you know where is it? I have root …

---

## [Update to non-adaptive bandwidth in TMVA::PDF class?](https://root-forum.cern.ch/t/update-to-non-adaptive-bandwidth-in-tmva-pdf-class/41293)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 1\
**Last updated:** [September 4, 2020, 6:37am UTC](https://root-forum.cern.ch/t/update-to-non-adaptive-bandwidth-in-tmva-pdf-class/41293 "2020-09-04T06:37:24Z")

</div>

I have been looking at TMVA’s implementation of KDE with Gaussian kernel, and noticed that the non-adaptive bandwidth is defined as the bandwidth which minimizes the AMISE for an underlying Gaussian distribution. The ge…

---

## [Fatal error TMVA signalweight](https://root-forum.cern.ch/t/fatal-error-tmva-signalweight/41201)

<div class="topic-metadata">

**Author:** [@Manuel\_Torres](https://root-forum.cern.ch/u/Manuel_Torres)\
**Replies:** 5\
**Last updated:** [August 31, 2020, 3:44pm UTC](https://root-forum.cern.ch/t/fatal-error-tmva-signalweight/41201 "2020-08-31T15:44:15Z")

</div>

Hello root family, I’m trying to classify some data with TMVA methods, for this I’m following the TMVAtutorialClassification https://root.cern.ch/doc/v610/TMVAClassification\_8C.html. My code after the factory and befor…

---

## [Multiclass capability for more methods?](https://root-forum.cern.ch/t/multiclass-capability-for-more-methods/39278)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 10\
**Last updated:** [August 25, 2020, 5:45pm UTC](https://root-forum.cern.ch/t/multiclass-capability-for-more-methods/39278 "2020-08-25T17:45:35Z")

</div>

Hello all, I was just wondering if work was being done to enable multiclass capability with more methods, in particular Fisher Discriminant Analysis? From this tutorial it looks like only a handful of the methods have m…

---

## [How is the BDT separation value calculated](https://root-forum.cern.ch/t/how-is-the-bdt-separation-value-calculated/38120)

<div class="topic-metadata">

**Author:** [@feichh](https://root-forum.cern.ch/u/feichh)\
**Replies:** 3\
**Last updated:** [August 24, 2020, 1:45pm UTC](https://root-forum.cern.ch/t/how-is-the-bdt-separation-value-calculated/38120 "2020-08-24T13:45:14Z")

</div>

Hey all, I’m fairly new to TMVA so sorry if this is a basic question, I could not find the answer for this anywhere else. I’m working with BDT and I am struggling to understand the output. At the end of the output log f…

---

## [How to extract optimal cuts value](https://root-forum.cern.ch/t/how-to-extract-optimal-cuts-value/41023)

<div class="topic-metadata">

**Author:** [@hhamdell](https://root-forum.cern.ch/u/hhamdell)\
**Replies:** 4\
**Last updated:** [August 24, 2020, 10:02am UTC](https://root-forum.cern.ch/t/how-to-extract-optimal-cuts-value/41023 "2020-08-24T10:02:06Z")

</div>

Dear Kim, I am using TMVA BDT method to discriminate between signal and background. I followed the instructions and it looks working well. Then, I want to extract the optimal cuts which correspond to the maximum of BDT …

---

## [With multiple signal and background types, handling one signal or background type divided over multiple trees using weights](https://root-forum.cern.ch/t/with-multiple-signal-and-background-types-handling-one-signal-or-background-type-divided-over-multiple-trees-using-weights/32252)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 12\
**Last updated:** [August 20, 2020, 5:32pm UTC](https://root-forum.cern.ch/t/with-multiple-signal-and-background-types-handling-one-signal-or-background-type-divided-over-multiple-trees-using-weights/32252 "2020-08-20T17:32:12Z")

</div>

Hello, I have been looking over other posts to see if they could answer my questions, but I still am left with some questions that I hope can be answered. I have the following sets classifications with correspondin…

---

## [TMVA Multiclass probability](https://root-forum.cern.ch/t/tmva-multiclass-probability/40029)

<div class="topic-metadata">

**Author:** [@lara.kamal](https://root-forum.cern.ch/u/lara.kamal)\
**Replies:** 2\
**Last updated:** [August 13, 2020, 8:16am UTC](https://root-forum.cern.ch/t/tmva-multiclass-probability/40029 "2020-08-13T08:16:43Z")

</div>

Hello everyone! I am currently working on a multi-class classification problem using BDTG (Boosted Decision Tree Gradient). I would want to add the probability of a classifier per event. For example, I would want my cla…

---

## [Can the Factory output root file NOT store the TTrees?](https://root-forum.cern.ch/t/can-the-factory-output-root-file-not-store-the-ttrees/40944)

<div class="topic-metadata">

**Author:** [@JuliaIturbe](https://root-forum.cern.ch/u/JuliaIturbe)\
**Replies:** 2\
**Last updated:** [August 13, 2020, 7:43am UTC](https://root-forum.cern.ch/t/can-the-factory-output-root-file-not-store-the-ttrees/40944 "2020-08-13T07:43:10Z")

</div>

Hi, is there a way to prevent the output file used in TMVA Factory from storing the train/test events in TTrees? I’m trying to optimise the BDT parameters using a grid scan so I’m running about ~350 jobs and in each one…

---

## [Cross Validation results returning zero](https://root-forum.cern.ch/t/cross-validation-results-returning-zero/40819)

<div class="topic-metadata">

**Author:** [@jreich](https://root-forum.cern.ch/u/jreich)\
**Replies:** 3\
**Last updated:** [August 12, 2020, 4:06pm UTC](https://root-forum.cern.ch/t/cross-validation-results-returning-zero/40819 "2020-08-12T16:06:24Z")

</div>

Hey all, I have been running TMVA using pyROOT for the past few months with no issues, however when I run a cross validation, the results called by using TMVA.CrossValidation’s GetResults() function return zeros for the…

---

## [PyKeras training has a strange behaviour compared to BDT](https://root-forum.cern.ch/t/pykeras-training-has-a-strange-behaviour-compared-to-bdt/40591)

<div class="topic-metadata">

**Author:** [@Tommaso\_Diotalevi](https://root-forum.cern.ch/u/Tommaso_Diotalevi)\
**Replies:** 7\
**Last updated:** [August 11, 2020, 8:58am UTC](https://root-forum.cern.ch/t/pykeras-training-has-a-strange-behaviour-compared-to-bdt/40591 "2020-08-11T08:58:32Z")

</div>

Dear TMVA experts, I’m using TMVA for a signal/background classification problem. In particular, I’m using several trees with signal samples and a single tree with background samples (drell-yan). In the classification …

---

## [TMVA RNN with Variable Input](https://root-forum.cern.ch/t/tmva-rnn-with-variable-input/40688)

<div class="topic-metadata">

**Author:** [@afyqazraei](https://root-forum.cern.ch/u/afyqazraei)\
**Replies:** 2\
**Last updated:** [August 11, 2020, 8:57am UTC](https://root-forum.cern.ch/t/tmva-rnn-with-variable-input/40688 "2020-08-11T08:57:15Z")

</div>

Hi, I am fairly new to TMVA but I have explored the tutorials a bit. I want to ask on what is the proper way to implement RNN with TMVA, such that it can take a variable number of input. In my case, I want to classify b…

---

## [TMVA keras bug of LearningRateSchedule](https://root-forum.cern.ch/t/tmva-keras-bug-of-learningrateschedule/37291)

<div class="topic-metadata">

**Author:** [@cxwx](https://root-forum.cern.ch/u/cxwx)\
**Replies:** 2\
**Last updated:** [July 23, 2020, 8:16pm UTC](https://root-forum.cern.ch/t/tmva-keras-bug-of-learningrateschedule/37291 "2020-07-23T20:16:22Z")

</div>

It seems the method of below TMVA.Types.kPyKeras with option LearningRateSchedule != '' got the error as below Traceback (most recent call last): File "\<string\>", line 1, in \<module\> File "/usr/local/lib/python3…

---

## [Failed to call "kCuts" methods from pyroot using TMVA](https://root-forum.cern.ch/t/failed-to-call-kcuts-methods-from-pyroot-using-tmva/36601)

<div class="topic-metadata">

**Author:** [@tahuang1991](https://root-forum.cern.ch/u/tahuang1991)\
**Replies:** 3\
**Last updated:** [July 23, 2020, 7:38am UTC](https://root-forum.cern.ch/t/failed-to-call-kcuts-methods-from-pyroot-using-tmva/36601 "2020-07-23T07:38:14Z")

</div>

when I used TMVA with pyroot, I can not successfully call kCuts in TMVA method. the error message is following: TFHandler\_Factory : Variable Mean RMS \[ Min Max \] : --------------…

---

## [How to give a tree to the factory as a training tree when using Regression?](https://root-forum.cern.ch/t/how-to-give-a-tree-to-the-factory-as-a-training-tree-when-using-regression/40534)

<div class="topic-metadata">

**Author:** [@cxwx1](https://root-forum.cern.ch/u/cxwx1)\
**Replies:** 1\
**Last updated:** [July 20, 2020, 9:03pm UTC](https://root-forum.cern.ch/t/how-to-give-a-tree-to-the-factory-as-a-training-tree-when-using-regression/40534 "2020-07-20T21:03:02Z")

</div>

How to give a tree to the factory as a training tree when using Regression? I didn’t find the option for doing that

---

## [Decision boundaries ploting by using TMVA](https://root-forum.cern.ch/t/decision-boundaries-ploting-by-using-tmva/40462)

<div class="topic-metadata">

**Author:** [@xiechenSJTU](https://root-forum.cern.ch/u/xiechenSJTU)\
**Replies:** 1\
**Last updated:** [July 17, 2020, 5:00pm UTC](https://root-forum.cern.ch/t/decision-boundaries-ploting-by-using-tmva/40462 "2020-07-17T17:00:21Z")

</div>

Hi, Recently l have tried to plot the decision boundaries of SVM method like what mentioned in the 43th page of the slides:https://indico.cern.ch/event/297180/contributions/1655947/attachments/557729/768436/LHCbMVA.pdf. …

---

## [Function in AddVariable](https://root-forum.cern.ch/t/function-in-addvariable/40385)

<div class="topic-metadata">

**Author:** [@testa](https://root-forum.cern.ch/u/testa)\
**Replies:** 2\
**Last updated:** [July 13, 2020, 5:41pm UTC](https://root-forum.cern.ch/t/function-in-addvariable/40385 "2020-07-13T17:41:21Z")

</div>

\_ROOT Version: 6.04 \_Platform: MacOC El Capitan 10.11.4 \_Compiler:Apple LLVM version 7.3.0 (clang-703.0.31) Dear experts, I would like to use a delta phi function in factory-\>AddVariable("deltaphi::… ") starting fr…

---

## [Error using DNN\_CPU method](https://root-forum.cern.ch/t/error-using-dnn-cpu-method/40332)

<div class="topic-metadata">

**Author:** [@pkafle](https://root-forum.cern.ch/u/pkafle)\
**Replies:** 4\
**Last updated:** [July 13, 2020, 4:59pm UTC](https://root-forum.cern.ch/t/error-using-dnn-cpu-method/40332 "2020-07-13T16:59:48Z")

</div>

Running the DNN\_CPU throws this error to me: “Multi-core CPU backend not enabled. Please make sure you have a BLAS implementation and it was successfully detected by CMake as well that the imt CMake flag is set” and I a…

---

## [Error using pyMVA exxample](https://root-forum.cern.ch/t/error-using-pymva-exxample/40226)

<div class="topic-metadata">

**Author:** [@Michele\_Selvaggi](https://root-forum.cern.ch/u/Michele_Selvaggi)\
**Replies:** 8\
**Last updated:** [July 6, 2020, 2:07pm UTC](https://root-forum.cern.ch/t/error-using-pymva-exxample/40226 "2020-07-06T14:07:41Z")

</div>

Hello, the RandomForest PyMVA method in this example is not found: source /cvmfs/sft.cern.ch/lcg/app/releases/ROOT/6.20.06/x86\_64-centos7-gcc48-opt/bin/thisroot.sh root /afs/cern.ch/user/s/selvaggi/public/4Gerri/TMVA…

---

## [TMVA Regression Trees Leaf Node](https://root-forum.cern.ch/t/tmva-regression-trees-leaf-node/39980)

<div class="topic-metadata">

**Author:** [@MarkD32](https://root-forum.cern.ch/u/MarkD32)\
**Replies:** 1\
**Last updated:** [June 19, 2020, 7:22am UTC](https://root-forum.cern.ch/t/tmva-regression-trees-leaf-node/39980 "2020-06-19T07:22:58Z")

</div>

c1.pdf (18.3 KB) Hello experts, I’ve attached the tree structure of a representative regression tree. Why are some of the final leaf nodes blue while others are white? The blue ones are marked with nType=“1” in the T…

---

## [Different application results from identical back-to-back runs](https://root-forum.cern.ch/t/different-application-results-from-identical-back-to-back-runs/39775)

<div class="topic-metadata">

**Author:** [@petrakou](https://root-forum.cern.ch/u/petrakou)\
**Replies:** 8\
**Last updated:** [June 18, 2020, 5:25am UTC](https://root-forum.cern.ch/t/different-application-results-from-identical-back-to-back-runs/39775 "2020-06-18T05:25:46Z")

</div>

Hi dear ROOTers, I train a classification BDTG and then apply it to a number of different datasets, each with about 300 events. (It has to be trained and applied separately for each of them.) While doing so, I noticed …

---

## [Rectangular cut can't vary discrete variable](https://root-forum.cern.ch/t/rectangular-cut-cant-vary-discrete-variable/39920)

<div class="topic-metadata">

**Author:** [@TheZardoz](https://root-forum.cern.ch/u/TheZardoz)\
**Replies:** 1\
**Last updated:** [June 15, 2020, 3:07pm UTC](https://root-forum.cern.ch/t/rectangular-cut-cant-vary-discrete-variable/39920 "2020-06-15T15:07:00Z")

</div>

Hi ! I am currently trying to use rectangular Cut (methode “Cuts”) from TMVA and i have a set of different type of variable with some i want to vary as continuum way and other in a discret way. The probleme is the opti…

---

## [Error while running training macro for classification](https://root-forum.cern.ch/t/error-while-running-training-macro-for-classification/39909)

<div class="topic-metadata">

**Author:** [@Saumyenk](https://root-forum.cern.ch/u/Saumyenk)\
**Replies:** 4\
**Last updated:** [June 15, 2020, 11:35am UTC](https://root-forum.cern.ch/t/error-while-running-training-macro-for-classification/39909 "2020-06-15T11:35:49Z")

</div>

Hi, I was trying to run classification macro (attached herewith) but getting errors that are very unexpected. Could anybody check the code if there’s anything wrong or not? Surely, there should be something wrong. Here,…

---

## [Using TMVA::MethodBase::GetRarity() instead of TMVA::Reader::GetRarity()](https://root-forum.cern.ch/t/using-tmva-getrarity-instead-of-tmva-getrarity/39889)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 3:31pm UTC](https://root-forum.cern.ch/t/using-tmva-getrarity-instead-of-tmva-getrarity/39889 "2020-06-12T15:31:24Z")

</div>

Hello, After an unsuccessful attempt at using FDA to simulate a multiclass Fisher response (the coefficients came out as NaN), I settled on using a one versus rest scheme to expand TMVA’s Fisher binary classification. A…

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

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