# \#tmva

**URL:** https://root-forum.cern.ch/tag/tmva/37.md

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

---

## [Feeding TMVA with TTrees for signal and backgrounds](https://root-forum.cern.ch/t/feeding-tmva-with-ttrees-for-signal-and-backgrounds/64537)

<div class="topic-metadata">

**Author:** [@ammelsayed](https://root-forum.cern.ch/u/ammelsayed)\
**Replies:** 2\
**Last updated:** [December 15, 2025, 11:02am UTC](https://root-forum.cern.ch/t/feeding-tmva-with-ttrees-for-signal-and-backgrounds/64537 "2025-12-15T11:02:08Z")

</div>

Dear experts, I’m using multiple root files for signal and background samples generated by Delphes. I read the files once for each process, create a corresponding TTree object, and store the variables data of interest i…

---

## [\[Fix\] TMVA SOFIE ONNX Parser missing in ROOT 6.36 build on Ubuntu 24.04 (WSL2)](https://root-forum.cern.ch/t/fix-tmva-sofie-onnx-parser-missing-in-root-6-36-build-on-ubuntu-24-04-wsl2/64526)

<div class="topic-metadata">

**Author:** [@SHLOK\_SAXENA](https://root-forum.cern.ch/u/SHLOK_SAXENA)\
**Replies:** 5\
**Last updated:** [December 9, 2025, 6:52pm UTC](https://root-forum.cern.ch/t/fix-tmva-sofie-onnx-parser-missing-in-root-6-36-build-on-ubuntu-24-04-wsl2/64526 "2025-12-09T18:52:19Z")

</div>

Hi everyone, I wanted to share a solution for a build issue I encountered while compiling ROOT v6.36 (latest source) on Ubuntu 24.04 (WSL2). The Issue Even after installing protobuf-compiler and libprotobuf-dev, and e…

---

## [Deviations in classification output when converting XGBoost to .root](https://root-forum.cern.ch/t/deviations-in-classification-output-when-converting-xgboost-to-root/64423)

<div class="topic-metadata">

**Author:** [@lfb](https://root-forum.cern.ch/u/lfb)\
**Replies:** 2\
**Last updated:** [November 21, 2025, 1:00pm UTC](https://root-forum.cern.ch/t/deviations-in-classification-output-when-converting-xgboost-to-root/64423 "2025-11-21T13:00:52Z")

</div>

Hello ROOT enthusiasts :) I encountered an issue when converting a classifier from XGBoost python package to .root format: I trained and optimised the classifier using XGBoost. I need to apply to a lot of data in .root…

---

## [XGBoost to TMVA conversion and TMVA inputs for RDataFrame operation](https://root-forum.cern.ch/t/xgboost-to-tmva-conversion-and-tmva-inputs-for-rdataframe-operation/63841)

<div class="topic-metadata">

**Author:** [@rquaglia](https://root-forum.cern.ch/u/rquaglia)\
**Replies:** 3\
**Last updated:** [July 4, 2025, 4:59am UTC](https://root-forum.cern.ch/t/xgboost-to-tmva-conversion-and-tmva-inputs-for-rdataframe-operation/63841 "2025-07-04T04:59:02Z")

</div>

Dear experts, i am using ROOT 6.34.04 and i am loading a pickle file from a trained XGboost model input. I see in XGboost they have a from xgboost2tmva import convert\_model which should do a conversion to XML but i als…

---

## [TTreeReader Error when applying MVA](https://root-forum.cern.ch/t/ttreereader-error-when-applying-mva/63799)

<div class="topic-metadata">

**Author:** [@ahuang](https://root-forum.cern.ch/u/ahuang)\
**Replies:** 7\
**Last updated:** [June 26, 2025, 9:31am UTC](https://root-forum.cern.ch/t/ttreereader-error-when-applying-mva/63799 "2025-06-26T09:31:46Z")

</div>

Hello experts, I’m trying to now apply and save the results of my trained MVA to my ntuples and am currently trying to test this with the current training file. I seem to be running into some sort of issue due to TTreeR…

---

## [K-S probability is coming always 1 in BDT training and testing?](https://root-forum.cern.ch/t/k-s-probability-is-coming-always-1-in-bdt-training-and-testing/63504)

<div class="topic-metadata">

**Author:** [@souvik](https://root-forum.cern.ch/u/souvik)\
**Replies:** 10\
**Last updated:** [May 10, 2025, 3:14pm UTC](https://root-forum.cern.ch/t/k-s-probability-is-coming-always-1-in-bdt-training-and-testing/63504 "2025-05-10T15:14:21Z")

</div>

Hi! When I am performing training and testing using TMVACrossValidation.C I always get K-S probability to be exactly 1. I think then I am doing something wrong! Could check then script once and I have also attached the …

---

## [Issue with Setting a Minimum Value for Input Parameters in Genetic Algorithm Training](https://root-forum.cern.ch/t/issue-with-setting-a-minimum-value-for-input-parameters-in-genetic-algorithm-training/62833)

<div class="topic-metadata">

**Author:** [@rpramanik](https://root-forum.cern.ch/u/rpramanik)\
**Replies:** 3\
**Last updated:** [February 17, 2025, 1:52pm UTC](https://root-forum.cern.ch/t/issue-with-setting-a-minimum-value-for-input-parameters-in-genetic-algorithm-training/62833 "2025-02-17T13:52:55Z")

</div>

I am using TMVA with FitMethod=GA to optimize five input parameters. I want to define both a minimum and maximum range for each parameter. When I specify only the maximum range, the training runs smoothly. However, when …

---

## [Get TestTree and TrainTree after TMVA is completed](https://root-forum.cern.ch/t/get-testtree-and-traintree-after-tmva-is-completed/62942)

<div class="topic-metadata">

**Author:** [@ygr](https://root-forum.cern.ch/u/ygr)\
**Replies:** 1\
**Last updated:** [February 14, 2025, 7:56am UTC](https://root-forum.cern.ch/t/get-testtree-and-traintree-after-tmva-is-completed/62942 "2025-02-14T07:56:43Z")

</div>

TMVA writes “dataset” directory and TestTree TrainTree with its outputs. Is it possible to get those trees with a method like GetIOTree on the same macro file TMVAClassification.C without opening the output file TMVA.ro…

---

## [RBDT compilation issue](https://root-forum.cern.ch/t/rbdt-compilation-issue/60498)

<div class="topic-metadata">

**Author:** [@aaarora](https://root-forum.cern.ch/u/aaarora)\
**Replies:** 2\
**Last updated:** [August 14, 2024, 11:31pm UTC](https://root-forum.cern.ch/t/rbdt-compilation-issue/60498 "2024-08-14T23:31:45Z")

</div>

Hello, I am trying to compile a small macro with RBDT but it fails at the linking step. A minimal example is #include "TMVA/RBDT.hxx" int main(){ TMVA::Experimental::RBDT bdt("BDT", "BDT.root"); return 0; } g…

---

## [TMVA::Experimental::SOFIE::RModelParser\_ONNX not recognized in namespace](https://root-forum.cern.ch/t/tmva-rmodelparser-onnx-not-recognized-in-namespace/59657)

<div class="topic-metadata">

**Author:** [@tstarynski](https://root-forum.cern.ch/u/tstarynski)\
**Replies:** 3\
**Last updated:** [June 17, 2024, 10:29am UTC](https://root-forum.cern.ch/t/tmva-rmodelparser-onnx-not-recognized-in-namespace/59657 "2024-06-17T10:29:19Z")

</div>

I am trying to use TMVA::Experimental::SOFIE::RModelParser\_ONNX to load in ONNX files into a program. To learn how it works i tried running the TMVA\_SOFIE\_ONNX.C file from the TMVA tutorial documentation, but I keep gett…

---

## [Apply a selection on an existent TTree without copying it](https://root-forum.cern.ch/t/apply-a-selection-on-an-existent-ttree-without-copying-it/58242)

<div class="topic-metadata">

**Author:** [@Alo](https://root-forum.cern.ch/u/Alo)\
**Replies:** 1\
**Last updated:** [February 23, 2024, 2:57pm UTC](https://root-forum.cern.ch/t/apply-a-selection-on-an-existent-ttree-without-copying-it/58242 "2024-02-23T14:57:30Z")

</div>

Hi everyone, I am trying to count the number of entries in a TTree under a MVA response cut (on the code bellow). But, before doing that, I want to apply a selection on the TTree without modifying it. However, the ROOT …

---

## [Issue in TMVA input variable distributions with ROOT v6.30](https://root-forum.cern.ch/t/issue-in-tmva-input-variable-distributions-with-root-v6-30/58102)

<div class="topic-metadata">

**Author:** [@tfulghes](https://root-forum.cern.ch/u/tfulghes)\
**Replies:** 3\
**Last updated:** [February 12, 2024, 8:34am UTC](https://root-forum.cern.ch/t/issue-in-tmva-input-variable-distributions-with-root-v6-30/58102 "2024-02-12T08:34:54Z")

</div>

Dear ROOTers, I am experiencing an issue with some input variable distributions when training some methods with the kFolding procedure using TMVA on lxplus EL9 and ROOT v6.30 (attached picture inputvariables\_el9.png). T…

---

## [Failed filling branch when applying the BDT result](https://root-forum.cern.ch/t/failed-filling-branch-when-applying-the-bdt-result/57919)

<div class="topic-metadata">

**Author:** [@Rbb\_Cui](https://root-forum.cern.ch/u/Rbb_Cui)\
**Replies:** 4\
**Last updated:** [January 21, 2024, 7:20pm UTC](https://root-forum.cern.ch/t/failed-filling-branch-when-applying-the-bdt-result/57919 "2024-01-21T19:20:33Z")

</div>

Hi, I am new to TMVA and ROOT. I am trying to use two separate BDTGs on my dataset, and I encounter the error shown in the screenshot when I run my evaluation script. Attached is my script Thanks!

---

## [Applying a trained ML model to unlabeled data](https://root-forum.cern.ch/t/applying-a-trained-ml-model-to-unlabeled-data/57804)

<div class="topic-metadata">

**Author:** [@mlouka](https://root-forum.cern.ch/u/mlouka)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 2:01pm UTC](https://root-forum.cern.ch/t/applying-a-trained-ml-model-to-unlabeled-data/57804 "2024-01-11T14:01:53Z")

</div>

Hello all, I’m doing a binary classification between signal (new resonance) and background (SM) using MLP of the TMVA. I’m using already weighted TTree events for training the model. After doing the training, I apply t…

---

## [Iissues when i tried to run ClassificationKeras.py](https://root-forum.cern.ch/t/iissues-when-i-tried-to-run-classificationkeras-py/56752)

<div class="topic-metadata">

**Author:** [@jinnnu](https://root-forum.cern.ch/u/jinnnu)\
**Replies:** 3\
**Last updated:** [January 9, 2024, 10:26am UTC](https://root-forum.cern.ch/t/iissues-when-i-tried-to-run-classificationkeras-py/56752 "2024-01-09T10:26:04Z")

</div>

Hi , i am using lxplus cern…in which root is already installed. i was trying to run ClassificationKeras.py in the TMVA tutorial. but while running it shows the following error, Traceback (most recent call last): Fil…

---

## [When TMVA comput loss,Some Eopch's loss is INF](https://root-forum.cern.ch/t/when-tmva-comput-loss-some-eopchs-loss-is-inf/57018)

<div class="topic-metadata">

**Author:** [@yhao](https://root-forum.cern.ch/u/yhao)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 2:15pm UTC](https://root-forum.cern.ch/t/when-tmva-comput-loss-some-eopchs-loss-is-inf/57018 "2023-11-17T14:15:29Z")

</div>

Dear users, When I train a DNN model with TMVA in ROOT6.20,I found out some epoch’s Train Err and Val Err are inf.I don’t understand why this is the case Below are the parameters and output of the model Thanks a …

---

## [The prediction probability given by TMVA DNN is all 0](https://root-forum.cern.ch/t/the-prediction-probability-given-by-tmva-dnn-is-all-0/57014)

<div class="topic-metadata">

**Author:** [@yhao](https://root-forum.cern.ch/u/yhao)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 1:13pm UTC](https://root-forum.cern.ch/t/the-prediction-probability-given-by-tmva-dnn-is-all-0/57014 "2023-11-17T13:13:12Z")

</div>

Dear tmva users, I have trained DNN model using TMVA with ROOT6.20version.The model can application normally with ROOT6.18. But when I run it with ROOT6.20,the output is all zeros! I am extremely perplexed as to why cha…

---

## [Issue with MVA and NaN Values](https://root-forum.cern.ch/t/issue-with-mva-and-nan-values/57038)

<div class="topic-metadata">

**Author:** [@asmaa.aboulhorma](https://root-forum.cern.ch/u/asmaa.aboulhorma)\
**Replies:** 5\
**Last updated:** [November 15, 2023, 9:54pm UTC](https://root-forum.cern.ch/t/issue-with-mva-and-nan-values/57038 "2023-11-15T21:54:26Z")

</div>

Hello everyone, I’m facing a problem with my code for limit calculations. I have a dataset with variables m, pt, eta, and phi, I’m applying some BDT scores from TMVA training. The issue I’m encountering is as follows: …

---

## [EvaluateMulticlass output zero](https://root-forum.cern.ch/t/evaluatemulticlass-output-zero/56378)

<div class="topic-metadata">

**Author:** [@yhao](https://root-forum.cern.ch/u/yhao)\
**Replies:** 1\
**Last updated:** [September 18, 2023, 7:41am UTC](https://root-forum.cern.ch/t/evaluatemulticlass-output-zero/56378 "2023-09-18T07:41:33Z")

</div>

Dear tmva users, I have trained DNN model using TMVA with ROOT6.18 version.The model can application normally with ROOT6.18, reader-\>EvaluateMulticlass( “DNN\_CPU method” ) can output right result. But when I run it with…

---

## [After a classifier is done training/testing, how do I apply a selection cut afterwards and save the selected events using the response of the classifier?](https://root-forum.cern.ch/t/after-a-classifier-is-done-training-testing-how-do-i-apply-a-selection-cut-afterwards-and-save-the-selected-events-using-the-response-of-the-classifier/56697)

<div class="topic-metadata">

**Author:** [@abayyari](https://root-forum.cern.ch/u/abayyari)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 1:27pm UTC](https://root-forum.cern.ch/t/after-a-classifier-is-done-training-testing-how-do-i-apply-a-selection-cut-afterwards-and-save-the-selected-events-using-the-response-of-the-classifier/56697 "2023-10-12T13:27:30Z")

</div>

I’m currently running a mlp neural network. After the training is finished, I can plot the response to the classifier with the TMVAGUI, which shows the separation strength for the signal/background events in my root file…

---

## [I'm getting only a single value from the EvaluateMVA() method in the TMVAClassificationApplication.C macro](https://root-forum.cern.ch/t/im-getting-only-a-single-value-from-the-evaluatemva-method-in-the-tmvaclassificationapplication-c-macro/56112)

<div class="topic-metadata">

**Author:** [@Raktim\_Mukherjee](https://root-forum.cern.ch/u/Raktim_Mukherjee)\
**Replies:** 14\
**Last updated:** [September 4, 2023, 3:01pm UTC](https://root-forum.cern.ch/t/im-getting-only-a-single-value-from-the-evaluatemva-method-in-the-tmvaclassificationapplication-c-macro/56112 "2023-09-04T15:01:25Z")

</div>

I am performing ML tasks. I first trained and tested multiple configurations of BDTs using the TMVAClassification.C macro but when I’m trying to run my model using the TMVAClassificationApplication.C macro, I’m getting o…

---

## [Using multiple RReaders in pyROOT](https://root-forum.cern.ch/t/using-multiple-rreaders-in-pyroot/55958)

<div class="topic-metadata">

**Author:** [@apetukho](https://root-forum.cern.ch/u/apetukho)\
**Replies:** 1\
**Last updated:** [August 8, 2023, 6:40am UTC](https://root-forum.cern.ch/t/using-multiple-rreaders-in-pyroot/55958 "2023-08-08T06:40:49Z")

</div>

Dear ROOT experts, I want to apply multiple TMVA classifiers to the TTree stored in a .root file using pyROOT and RDataFrame (using this post as a reference). I’m trying to declare as many “lazy” snapshots as possible t…

---

## [Question about DrawNetwork in TMLPAnalyzer](https://root-forum.cern.ch/t/question-about-drawnetwork-in-tmlpanalyzer/55789)

<div class="topic-metadata">

**Author:** [@mortonia](https://root-forum.cern.ch/u/mortonia)\
**Replies:** 2\
**Last updated:** [August 7, 2023, 12:07pm UTC](https://root-forum.cern.ch/t/question-about-drawnetwork-in-tmlpanalyzer/55789 "2023-08-07T12:07:38Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22/06 Platform: Ubuntu Compiler: Not Provided Dear ROOT community, Hello! This is my first post here. I’m attempting to class…

---

## [Inconsistencies with TMVA model evaluation in pyROOT when using multithreading](https://root-forum.cern.ch/t/inconsistencies-with-tmva-model-evaluation-in-pyroot-when-using-multithreading/55817)

<div class="topic-metadata">

**Author:** [@pdmonte](https://root-forum.cern.ch/u/pdmonte)\
**Replies:** 1\
**Last updated:** [July 24, 2023, 5:43pm UTC](https://root-forum.cern.ch/t/inconsistencies-with-tmva-model-evaluation-in-pyroot-when-using-multithreading/55817 "2023-07-24T17:43:11Z")

</div>

Hello, We are currently working on applying a TMVA BDT model to an RDataFrame in pyROOT (ROOT version: 6.28/00). Our goal is to use the .weights.xml file for the evaluation. However, during our analysis, we encountered …

---

## [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 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…

---

## [\[Windows 10\] ROOT 6.28 with Miniconda Python 3.10 slow import](https://root-forum.cern.ch/t/windows-10-root-6-28-with-miniconda-python-3-10-slow-import/53763)

<div class="topic-metadata">

**Author:** [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Replies:** 10\
**Last updated:** [March 1, 2023, 1:25pm UTC](https://root-forum.cern.ch/t/windows-10-root-6-28-with-miniconda-python-3-10-slow-import/53763 "2023-03-01T13:25:44Z")

</div>

Continuing the discussion from \[Windows 10\] ROOT 6.28 build with Miniconda Python 3.10 crashed: ROOT Version: ROOT 6.28/00 (64 bits) Python: Miniconda3-py310\_23.1.0-1-Windows-x86\_64.exe Platform: Windows 10 (20H2) C…

---

## [TMVA-Wrong Number of Entries w.r.t Inputs](https://root-forum.cern.ch/t/tmva-wrong-number-of-entries-w-r-t-inputs/53732)

<div class="topic-metadata">

**Author:** [@Threshic](https://root-forum.cern.ch/u/Threshic)\
**Replies:** 4\
**Last updated:** [February 27, 2023, 4:31pm UTC](https://root-forum.cern.ch/t/tmva-wrong-number-of-entries-w-r-t-inputs/53732 "2023-02-27T16:31:52Z")

</div>

\_ROOT Version: 6.24.06 \_Platform: centos7.6 Compiler: Not Provided Hello everyone, I am currently using the tmva framework to build a BDT. I will explain in two parts : one version that works, another that does not…

---

## [pyROOT runtime error on M2 Max chip](https://root-forum.cern.ch/t/pyroot-runtime-error-on-m2-max-chip/53416)

<div class="topic-metadata">

**Author:** [@Avencast](https://root-forum.cern.ch/u/Avencast)\
**Replies:** 3\
**Last updated:** [February 2, 2023, 4:09pm UTC](https://root-forum.cern.ch/t/pyroot-runtime-error-on-m2-max-chip/53416 "2023-02-02T16:09:40Z")

</div>

Hi all, I’ve faced a strange problem dealing with pyROOT. I’m writing an MVA training script using RDataFrame and TMVA in pyROOT. The code snippet is as follows: # Preprocessing input samples rdf = ROOT.RDataFrame("tr…

---

## [Training TMultiLayerPerceptron in multi-core mode](https://root-forum.cern.ch/t/training-tmultilayerperceptron-in-multi-core-mode/52929)

<div class="topic-metadata">

**Author:** [@garciaduarte1](https://root-forum.cern.ch/u/garciaduarte1)\
**Replies:** 5\
**Last updated:** [January 5, 2023, 8:48pm UTC](https://root-forum.cern.ch/t/training-tmultilayerperceptron-in-multi-core-mode/52929 "2023-01-05T20:48:35Z")

</div>

I am training a TMultiLayerPerceptron neural network that has 11 neurons in the input and output layers (with continuous values in the interval \[0,1\]), with three hidden layers, each with 50 neurons. It takes more than 1…

[Next page](https://root-forum.cern.ch/tag/tmva/37.md?match_all_tags=true&page=1&tags%5B%5D=tmva)
