# TMVA

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

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

---

## [Multiple Signal And Background samples in TMVA](https://root-forum.cern.ch/t/multiple-signal-and-background-samples-in-tmva/50559)

<div class="topic-metadata">

**Author:** [@Annzm](https://root-forum.cern.ch/u/Annzm)\
**Replies:** 2\
**Last updated:** [July 1, 2023, 4:35am UTC](https://root-forum.cern.ch/t/multiple-signal-and-background-samples-in-tmva/50559 "2023-07-01T04:35:50Z")

</div>

Hi Everyone, I have 5 root files of signal and 5 root files of background process. Now I want TMVA classification but have no idea how to get started with such multiple files. can anybody help how to deal with this? B…

---

## [Cannot compute predictions using "double" only "float"](https://root-forum.cern.ch/t/cannot-compute-predictions-using-double-only-float/55410)

<div class="topic-metadata">

**Author:** [@Chandler\_K](https://root-forum.cern.ch/u/Chandler_K)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 11:22am UTC](https://root-forum.cern.ch/t/cannot-compute-predictions-using-double-only-float/55410 "2023-06-23T11:22:14Z")

</div>

I cannot generate predictions when I give the TMVA::Experiment::RBDT’s Compute() method an input of std::vector. Indeed, my code fails to compile in this case. Working code: TMVA::Experimental::RBDT\<\> \*fBDT1; fBDT1 = n…

---

## [Error in requested events](https://root-forum.cern.ch/t/error-in-requested-events/55352)

<div class="topic-metadata">

**Author:** [@Abdul](https://root-forum.cern.ch/u/Abdul)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 11:16am UTC](https://root-forum.cern.ch/t/error-in-requested-events/55352 "2023-06-22T11:16:43Z")

</div>

Hi everyone! I am facing problem with requested events. I am sharing picture, if anyone can help me. I have 30000 events , after appling cuts it gives error.

---

## [Do the cuts for my TMVA training affect the weights I chose?](https://root-forum.cern.ch/t/do-the-cuts-for-my-tmva-training-affect-the-weights-i-chose/55383)

<div class="topic-metadata">

**Author:** [@Alo](https://root-forum.cern.ch/u/Alo)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 10:36am UTC](https://root-forum.cern.ch/t/do-the-cuts-for-my-tmva-training-affect-the-weights-i-chose/55383 "2023-06-22T10:36:32Z")

</div>

Hi everyone, I’m using TMVA Root on several samples (Signal vs Backgrounds). In inputs, I specified a weight for every background for the training to make my sample statistics fit with the reality. But, I also applied s…

---

## [Error with TMVAClassificationApplication.C](https://root-forum.cern.ch/t/error-with-tmvaclassificationapplication-c/55391)

<div class="topic-metadata">

**Author:** [@ampudia](https://root-forum.cern.ch/u/ampudia)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 6:54am UTC](https://root-forum.cern.ch/t/error-with-tmvaclassificationapplication-c/55391 "2023-06-22T06:54:06Z")

</div>

Hi, I am trying to do the TMVA tutorial (specifically using a BDT) using a root file of mine. TMVAClassification.C is working well with both the example file, tmva\_class\_example.root, and mine, outputTrees.root (for con…

---

## [CNN LSTM machine learning model on GPU?](https://root-forum.cern.ch/t/cnn-lstm-machine-learning-model-on-gpu/53753)

<div class="topic-metadata">

**Author:** [@meyerma](https://root-forum.cern.ch/u/meyerma)\
**Replies:** 8\
**Last updated:** [June 6, 2023, 4:32pm UTC](https://root-forum.cern.ch/t/cnn-lstm-machine-learning-model-on-gpu/53753 "2023-06-06T16:32:58Z")

</div>

Hello, I have found this talk (slide 14) from 5 years ago and I am particularly willing to use CNN-LSTM machine learning model on GPU. It seems this wasn’t implemented yet at that time. Were there some recent developmen…

---

## [FPE in SOFIE-generated inference function](https://root-forum.cern.ch/t/fpe-in-sofie-generated-inference-function/55192)

<div class="topic-metadata">

**Author:** [@Dave\_Brown](https://root-forum.cern.ch/u/Dave_Brown)\
**Replies:** 1\
**Last updated:** [June 6, 2023, 2:31pm UTC](https://root-forum.cern.ch/t/fpe-in-sofie-generated-inference-function/55192 "2023-06-06T14:31:20Z")

</div>

I see occasional FPE invoking the SOFIE-generated infer function in my application with overflow trapping enabled. Looking in detail at 1 instance, the input values are valid and physically sensible and consistent with …

---

## [Using the HyperparameterOptimisation](https://root-forum.cern.ch/t/using-the-hyperparameteroptimisation/54814)

<div class="topic-metadata">

**Author:** [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Replies:** 2\
**Last updated:** [June 2, 2023, 3:27pm UTC](https://root-forum.cern.ch/t/using-the-hyperparameteroptimisation/54814 "2023-06-02T15:27:02Z")

</div>

Hi experts, I am trying to do a hyper parameter optimization, but sadly I am not quite understanding the documentation. I have made a DataLoader and now tried to book a method the following way: TMVA::HyperParameterOpt…

---

## [How Number of events appear for bdt in classifier response distribution](https://root-forum.cern.ch/t/how-number-of-events-appear-for-bdt-in-classifier-response-distribution/55066)

<div class="topic-metadata">

**Author:** [@Asmara](https://root-forum.cern.ch/u/Asmara)\
**Replies:** 6\
**Last updated:** [June 2, 2023, 11:00am UTC](https://root-forum.cern.ch/t/how-number-of-events-appear-for-bdt-in-classifier-response-distribution/55066 "2023-06-02T11:00:19Z")

</div>

how the tmva bdt classifier returns the number of events for bdt score valued ,i am getting very small number of events for bdt score values ,that i want to change .

---

## [TMVA BDT output class file](https://root-forum.cern.ch/t/tmva-bdt-output-class-file/55041)

<div class="topic-metadata">

**Author:** [@ampudia](https://root-forum.cern.ch/u/ampudia)\
**Replies:** 1\
**Last updated:** [May 27, 2023, 10:32am UTC](https://root-forum.cern.ch/t/tmva-bdt-output-class-file/55041 "2023-05-27T10:32:01Z")

</div>

Hi! I ran TMVAClassification.C and tested and trained a BDT using a root file with two trees. The output of that were three files: one called “TMVA.root”, another one called “TMVAClassification\_BDT.class.C” and the last…

---

## [Tutorial on TMVA Classifiers](https://root-forum.cern.ch/t/tutorial-on-tmva-classifiers/54697)

<div class="topic-metadata">

**Author:** [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Replies:** 4\
**Last updated:** [May 27, 2023, 10:29am UTC](https://root-forum.cern.ch/t/tutorial-on-tmva-classifiers/54697 "2023-05-27T10:29:13Z")

</div>

Hi all, I am very new to TMVA and have so far only used python for classifiers. Now I used the tutorial for the TMVAClassification and used my personal data (which did give quite nice results). The used data for trainin…

---

## [FastBDT in TMVA](https://root-forum.cern.ch/t/fastbdt-in-tmva/54536)

<div class="topic-metadata">

**Author:** [@jackb2](https://root-forum.cern.ch/u/jackb2)\
**Replies:** 5\
**Last updated:** [April 19, 2023, 4:03am UTC](https://root-forum.cern.ch/t/fastbdt-in-tmva/54536 "2023-04-19T04:03:22Z")

</div>

Dear TMVA Experts, Is there a way to use the FastBDT method with the TMVA? Thanks in advance! jackb2

---

## [TMVA KCuts save GUI from within Condor](https://root-forum.cern.ch/t/tmva-kcuts-save-gui-from-within-condor/54405)

<div class="topic-metadata">

**Author:** [@smitmatt](https://root-forum.cern.ch/u/smitmatt)\
**Replies:** 1\
**Last updated:** [April 11, 2023, 10:07pm UTC](https://root-forum.cern.ch/t/tmva-kcuts-save-gui-from-within-condor/54405 "2023-04-11T22:07:45Z")

</div>

Hello, I am running a TMVA Kcuts algorithm from within Condor and would like to save the TMVA GUI signal efficiency / purity curve, as I do not have access to manual use of the GUI. I have previously used BDT’s and know…

---

## [BDT method with XGBoost and TMVA](https://root-forum.cern.ch/t/bdt-method-with-xgboost-and-tmva/54390)

<div class="topic-metadata">

**Author:** [@Antara](https://root-forum.cern.ch/u/Antara)\
**Replies:** 6\
**Last updated:** [April 11, 2023, 8:25am UTC](https://root-forum.cern.ch/t/bdt-method-with-xgboost-and-tmva/54390 "2023-04-11T08:25:57Z")

</div>

I am trying to use the XGBoost to perform BDT analysis of signal and background for a set of final states. My code file performs well in some sets of sample events. Whereas in some cases, I get stuck with the line that ‘…

---

## [TMVA\_SOFIE\_Keras on MacOS](https://root-forum.cern.ch/t/tmva-sofie-keras-on-macos/52551)

<div class="topic-metadata">

**Author:** [@Dave\_Brown](https://root-forum.cern.ch/u/Dave_Brown)\
**Replies:** 11\
**Last updated:** [April 11, 2023, 7:52am UTC](https://root-forum.cern.ch/t/tmva-sofie-keras-on-macos/52551 "2023-04-11T07:52:47Z")

</div>

I’m trying to run the TMVA\_SOFIE\_Keras.C tutorial on MacOSX (Monterey 12.6, i9). I’ve installed a python-aware version of root 6.26.10 using mamba, which seems to work normally. The problem is listed below. It runs fi…

---

## [TMVA Doesn't Work With TensorFlow-Keras](https://root-forum.cern.ch/t/tmva-doesnt-work-with-tensorflow-keras/54327)

<div class="topic-metadata">

**Author:** [@Jackhammer0102](https://root-forum.cern.ch/u/Jackhammer0102)\
**Replies:** 7\
**Last updated:** [April 4, 2023, 8:50pm UTC](https://root-forum.cern.ch/t/tmva-doesnt-work-with-tensorflow-keras/54327 "2023-04-04T20:50:59Z")

</div>

Hi, ROOT experts, I was trying to run the tutorial macro ClassificationKeras.py in tutorials/tmva/keras/, but I got errors. Can someone give me some ideas about how to make it work? This part shows what happened before…

---

## [TMVA train and test tree](https://root-forum.cern.ch/t/tmva-train-and-test-tree/54337)

<div class="topic-metadata">

**Author:** [@realTay\_John](https://root-forum.cern.ch/u/realTay_John)\
**Replies:** 4\
**Last updated:** [April 3, 2023, 11:04am UTC](https://root-forum.cern.ch/t/tmva-train-and-test-tree/54337 "2023-04-03T11:04:38Z")

</div>

Hi experts, I am using tmva for classification problems using pyroot. Then I Categorized the event by events number to odd tree and even tree. And they are prepared for test and training separately: by: dataloader.A…

---

## [How to import .lhe file in TMVAClassification.C](https://root-forum.cern.ch/t/how-to-import-lhe-file-in-tmvaclassification-c/54335)

<div class="topic-metadata">

**Author:** [@Abdul](https://root-forum.cern.ch/u/Abdul)\
**Replies:** 1\
**Last updated:** [April 3, 2023, 8:39am UTC](https://root-forum.cern.ch/t/how-to-import-lhe-file-in-tmvaclassification-c/54335 "2023-04-03T08:39:52Z")

</div>

Hi… I am using root first time. I need help about to import file in root. I have generated .lhe file from madgraph and want to use this file in TMVAClassification.C. How I can import this file for TMVA analysis?

---

## [TMVA read image data for application of a CNN model](https://root-forum.cern.ch/t/tmva-read-image-data-for-application-of-a-cnn-model/54181)

<div class="topic-metadata">

**Author:** [@lilina](https://root-forum.cern.ch/u/lilina)\
**Replies:** 15\
**Last updated:** [March 31, 2023, 8:24am UTC](https://root-forum.cern.ch/t/tmva-read-image-data-for-application-of-a-cnn-model/54181 "2023-03-31T08:24:30Z")

</div>

Hi! I am starting to learn how to use TMVA. The input I need to use in my analysis is an image so I need to work with CNN. I have run the example on the TMVA tutorial TMVA\_CNN\_Classification.C. In this CNN example the i…

---

## [ROOT.TMVA.Experimental.SaveXGBoost Fails](https://root-forum.cern.ch/t/root-tmva-experimental-savexgboost-fails/54266)

<div class="topic-metadata">

**Author:** [@Chandler\_K](https://root-forum.cern.ch/u/Chandler_K)\
**Replies:** 3\
**Last updated:** [March 29, 2023, 10:49am UTC](https://root-forum.cern.ch/t/root-tmva-experimental-savexgboost-fails/54266 "2023-03-29T10:49:55Z")

</div>

I have a trained XGBClassifier from XGBoost (v1.7.4) in Python. I then load it in (and that works fine): model = xgb.XGBClassifier() model.load\_model('/path/to/train/model.json') I then try to convert to a ROOT friendl…

---

## [Training and Testing separate ntuples](https://root-forum.cern.ch/t/training-and-testing-separate-ntuples/54160)

<div class="topic-metadata">

**Author:** [@fdeberna](https://root-forum.cern.ch/u/fdeberna)\
**Replies:** 3\
**Last updated:** [March 27, 2023, 9:30am UTC](https://root-forum.cern.ch/t/training-and-testing-separate-ntuples/54160 "2023-03-27T09:30:22Z")

</div>

Dear experts, I am doing a multivariate classification and I would like to know only if I am operating in the right way. For the classification I am using two different ntuples for signal training and testing (both havi…

---

## [How to access the TMVA result.root by code instead of TMVA::GUI](https://root-forum.cern.ch/t/how-to-access-the-tmva-result-root-by-code-instead-of-tmva-gui/54124)

<div class="topic-metadata">

**Author:** [@realTay\_John](https://root-forum.cern.ch/u/realTay_John)\
**Replies:** 8\
**Last updated:** [March 20, 2023, 1:51pm UTC](https://root-forum.cern.ch/t/how-to-access-the-tmva-result-root-by-code-instead-of-tmva-gui/54124 "2023-03-20T13:51:52Z")

</div>

Hi all, If there is an example of how to access the TMVA result.root by code instead of TMVA::GUI? Graphical interfaces cannot be forwarded using jumper server. So I can not get the access to the TMVA::GUI. How can I …

---

## [BDT performance vs number of trees](https://root-forum.cern.ch/t/bdt-performance-vs-number-of-trees/53984)

<div class="topic-metadata">

**Author:** [@RISHABH\_RATURI1](https://root-forum.cern.ch/u/RISHABH_RATURI1)\
**Replies:** 3\
**Last updated:** [March 13, 2023, 2:45pm UTC](https://root-forum.cern.ch/t/bdt-performance-vs-number-of-trees/53984 "2023-03-13T14:45:46Z")

</div>

Hello, I want to plot the BDT performance vs #Trees just like mentioned in slide 60 in \[1\]. The plot looks like they are generated through TMVA but I’m not able to figure out how one can do that. TMVAGui shows no such o…

---

## [Problems when using the TMVA::Reader-\>EvaluateMulticlass() method](https://root-forum.cern.ch/t/problems-when-using-the-tmva-reader-evaluatemulticlass-method/53764)

<div class="topic-metadata">

**Author:** [@evalient](https://root-forum.cern.ch/u/evalient)\
**Replies:** 5\
**Last updated:** [March 2, 2023, 3:51pm UTC](https://root-forum.cern.ch/t/problems-when-using-the-tmva-reader-evaluatemulticlass-method/53764 "2023-03-02T15:51:20Z")

</div>

Hi everyone! I am trying to evaluate the multiclass scores in some code from some n-tuples. I have seen that for the case of binominal BDTs, there is a TMVA::Reader method called EvaluateMVA in which you can explicitly …

---

## [TMVA Keras: Inverse Transform of NN Regression Output](https://root-forum.cern.ch/t/tmva-keras-inverse-transform-of-nn-regression-output/53817)

<div class="topic-metadata">

**Author:** [@AndrejS](https://root-forum.cern.ch/u/AndrejS)\
**Replies:** 9\
**Last updated:** [March 1, 2023, 2:05pm UTC](https://root-forum.cern.ch/t/tmva-keras-inverse-transform-of-nn-regression-output/53817 "2023-03-01T14:05:13Z")

</div>

Dear experts, I’m using TMVA Keras to train a feed-forward NN to regress a feature. When performing the pre-processing with VariableTransform, I realized that the target distribution also gets transformed, e.g. Gaussia…

---

## [TMVA with convoluted signals/background](https://root-forum.cern.ch/t/tmva-with-convoluted-signals-background/53809)

<div class="topic-metadata">

**Author:** [@meyerma](https://root-forum.cern.ch/u/meyerma)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 7:51am UTC](https://root-forum.cern.ch/t/tmva-with-convoluted-signals-background/53809 "2023-02-28T07:51:11Z")

</div>

Hello, I am usually running ML programs that are not using simple signal+background relations. In the process I basically deal with 32-seconds time window (vectors/histograms). These latter are either pure signal or pu…

---

## [Roc curve, difficulty drawing using TMVA::ROCCurve \* roc = new TMVA::ROCCurve(sig\_result, bkg\_result);](https://root-forum.cern.ch/t/roc-curve-difficulty-drawing-using-tmva-roccurve-roc-new-tmva-roccurve-sig-result-bkg-result/53398)

<div class="topic-metadata">

**Author:** [@jieunyoo](https://root-forum.cern.ch/u/jieunyoo)\
**Replies:** 8\
**Last updated:** [February 11, 2023, 10:42pm UTC](https://root-forum.cern.ch/t/roc-curve-difficulty-drawing-using-tmva-roccurve-roc-new-tmva-roccurve-sig-result-bkg-result/53398 "2023-02-11T22:42:52Z")

</div>

Hello. I am having trouble creating my ROC curve. Could someone please point me to the correct way? When I draw the histograms for signal and bkg, things look ok, but the ROC curve is quite strange. void MyreaderROC() …

---

## [Understanding TMVA output for regression using keras with theano backend](https://root-forum.cern.ch/t/understanding-tmva-output-for-regression-using-keras-with-theano-backend/34420)

<div class="topic-metadata">

**Author:** [@Devin](https://root-forum.cern.ch/u/Devin)\
**Replies:** 6\
**Last updated:** [February 10, 2023, 9:48am UTC](https://root-forum.cern.ch/t/understanding-tmva-output-for-regression-using-keras-with-theano-backend/34420 "2023-02-10T09:48:00Z")

</div>

I’m using keras with a theano backend on lxplus, and I’m having trouble understanding the output histograms from a regression problem or even if it’s working properly. I’ve attached my python script and a plot I discuss …

---

## [Should I split the MC used for "TMVA BDT train&test" and "MVA score"?](https://root-forum.cern.ch/t/should-i-split-the-mc-used-for-tmva-bdt-train-test-and-mva-score/53483)

<div class="topic-metadata">

**Author:** [@yhoonlee](https://root-forum.cern.ch/u/yhoonlee)\
**Replies:** 4\
**Last updated:** [February 9, 2023, 10:53am UTC](https://root-forum.cern.ch/t/should-i-split-the-mc-used-for-tmva-bdt-train-test-and-mva-score/53483 "2023-02-09T10:53:03Z")

</div>

Hi All, I am doing signal search analysis. So, TMVA was used to distinguish between signal and background. First, training and testing of the BDT model were performed using TMVAClassification. And I used TMVAClassifi…

---

## [How to get ROC curve for TMVA::Reader?](https://root-forum.cern.ch/t/how-to-get-roc-curve-for-tmva-reader/39250)

<div class="topic-metadata">

**Author:** [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Replies:** 3\
**Last updated:** [February 6, 2023, 1:49pm UTC](https://root-forum.cern.ch/t/how-to-get-roc-curve-for-tmva-reader/39250 "2023-02-06T13:49:16Z")

</div>

Hi all, I have trained the BDT and now have the weights. Then, I apply this to a mixed of signal and background events (data) Create TMVA::Reader and add BDT method from weight file Read in data from tree For event…

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

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