# TMVA

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

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

---

## [TMVA: Separately passing Train and Test Tree for Signal and Background](https://root-forum.cern.ch/t/tmva-separately-passing-train-and-test-tree-for-signal-and-background/43447)

<div class="topic-metadata">

**Author:** [@kormoranos](https://root-forum.cern.ch/u/kormoranos)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 4:42pm UTC](https://root-forum.cern.ch/t/tmva-separately-passing-train-and-test-tree-for-signal-and-background/43447 "2021-02-10T16:42:07Z")

</div>

Dear rooters, I have an apparently silly question that is bothering me since two weeks. I have an old code using TMVA where I add signal and background in the following way: fTMVAdataloader\[iTMVA\]-\>AddSignalTree(sign…

---

## [Problem with different weights TMVA](https://root-forum.cern.ch/t/problem-with-different-weights-tmva/43407)

<div class="topic-metadata">

**Author:** [@momo93](https://root-forum.cern.ch/u/momo93)\
**Replies:** 1\
**Last updated:** [February 8, 2021, 8:50am UTC](https://root-forum.cern.ch/t/problem-with-different-weights-tmva/43407 "2021-02-08T08:50:39Z")

</div>

Hi everybody, I am starting to use TMVA package and I have a problem to set the right weight for the input file. Better explanation: I have 2 files where one is completely background, and I set like the following rows: …

---

## [TMVA - sample reweighting issue](https://root-forum.cern.ch/t/tmva-sample-reweighting-issue/43145)

<div class="topic-metadata">

**Author:** [@janina.anna.krzysiak](https://root-forum.cern.ch/u/janina.anna.krzysiak)\
**Replies:** 3\
**Last updated:** [January 28, 2021, 3:17pm UTC](https://root-forum.cern.ch/t/tmva-sample-reweighting-issue/43145 "2021-01-28T15:17:55Z")

</div>

Hi TMVA experts, I’m having some trouble with normalizing signal samples. I have a number of signal samples with the same resonance production process, but different resonance masses. I want to use all of these samples…

---

## [Boundary for target in regression not working](https://root-forum.cern.ch/t/boundary-for-target-in-regression-not-working/42988)

<div class="topic-metadata">

**Author:** [@testa](https://root-forum.cern.ch/u/testa)\
**Replies:** 8\
**Last updated:** [January 27, 2021, 11:50am UTC](https://root-forum.cern.ch/t/boundary-for-target-in-regression-not-working/42988 "2021-01-27T11:50:23Z")

</div>

Dear experts, I’m using a MLP multi-target regression. I’ve set a target variable with min and max values with: dataloader-\>AddTarget(myvar,"","",xmin,xmax) However when plotting TestTree-\>Draw(MLP.myvar) there are …

---

## [Variable importances don't get printed when using CrossValidation](https://root-forum.cern.ch/t/variable-importances-dont-get-printed-when-using-crossvalidation/43238)

<div class="topic-metadata">

**Author:** [@avenkate](https://root-forum.cern.ch/u/avenkate)\
**Replies:** 4\
**Last updated:** [January 27, 2021, 11:35am UTC](https://root-forum.cern.ch/t/variable-importances-dont-get-printed-when-using-crossvalidation/43238 "2021-01-27T11:35:17Z")

</div>

Dear experts, I have noticed that the variable importances (both method unspecific and method specific) aren’t being printed out by TMVA when using CrossValidation. Is there a reason for this? I have tried training bot…

---

## [Global weights in AddRegressionTree](https://root-forum.cern.ch/t/global-weights-in-addregressiontree/43212)

<div class="topic-metadata">

**Author:** [@testa](https://root-forum.cern.ch/u/testa)\
**Replies:** 1\
**Last updated:** [January 22, 2021, 5:23pm UTC](https://root-forum.cern.ch/t/global-weights-in-addregressiontree/43212 "2021-01-22T17:23:35Z")

</div>

Dear experts, I’ve two trees for a regression problem, corresponding to two different channels. For the training, I want that one channel has a larger weight. I tried putting two different weights in factory-\>AddRe…

---

## [Setup for DNN regression on lxplus](https://root-forum.cern.ch/t/setup-for-dnn-regression-on-lxplus/43180)

<div class="topic-metadata">

**Author:** [@testa](https://root-forum.cern.ch/u/testa)\
**Replies:** 1\
**Last updated:** [January 20, 2021, 2:05pm UTC](https://root-forum.cern.ch/t/setup-for-dnn-regression-on-lxplus/43180 "2021-01-20T14:05:32Z")

</div>

Dear experts, I would like to run a DNN regression on lxplus. I tried on lxplus770 with ROOT 6.18 and get this error: Multi-core CPU backend not enabled. Please make sure you have a BLAS implementation and it was succ…

---

## [How are weighted samples treated in multiclass TMVA?](https://root-forum.cern.ch/t/how-are-weighted-samples-treated-in-multiclass-tmva/42909)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 4\
**Last updated:** [January 18, 2021, 6:00pm UTC](https://root-forum.cern.ch/t/how-are-weighted-samples-treated-in-multiclass-tmva/42909 "2021-01-18T18:00:52Z")

</div>

Hello, I have a follow up question stemming from the discussion in this thread. Suppose one of the classification samples has n0 events, with each event having an importance weight (w\_i) between 0 to 1. Also suppose I …

---

## [Running TMVA with multi core](https://root-forum.cern.ch/t/running-tmva-with-multi-core/34973)

<div class="topic-metadata">

**Author:** [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Replies:** 4\
**Last updated:** [January 18, 2021, 9:08am UTC](https://root-forum.cern.ch/t/running-tmva-with-multi-core/34973 "2021-01-18T09:08:11Z")

</div>

Hi! I’m trying to run TMVA in multi-core mode. It seems only DNN provides the multi-core option. Is there anyway to run in multi-core for other methods? i.e. PDERS p.s. I checked the root multicore page : https://roo…

---

## [What is the validation sample when using pyKeras?](https://root-forum.cern.ch/t/what-is-the-validation-sample-when-using-pykeras/29176)

<div class="topic-metadata">

**Author:** [@a.bragagnolo](https://root-forum.cern.ch/u/a.bragagnolo)\
**Replies:** 3\
**Last updated:** [January 15, 2021, 1:46pm UTC](https://root-forum.cern.ch/t/what-is-the-validation-sample-when-using-pykeras/29176 "2021-01-15T13:46:16Z")

</div>

Dear expert, my question is simple: the validation sample in pyKeras, used for computing the val\_loss (val\_accuracy) at each epoch (in order to save only the best model and/or for early stopping), is the test sample def…

---

## [Variable ranking with PCA-transformed variables](https://root-forum.cern.ch/t/variable-ranking-with-pca-transformed-variables/42977)

<div class="topic-metadata">

**Author:** [@wolfmor](https://root-forum.cern.ch/u/wolfmor)\
**Replies:** 2\
**Last updated:** [January 7, 2021, 10:54am UTC](https://root-forum.cern.ch/t/variable-ranking-with-pca-transformed-variables/42977 "2021-01-07T10:54:20Z")

</div>

Hey, I am training a BDT with PCA applied to the input variables and have a question regarding the variable ranking that is provided by TMVA after the training: Are the variables given in the ranking the original variab…

---

## [Regression with constraints](https://root-forum.cern.ch/t/regression-with-constraints/42936)

<div class="topic-metadata">

**Author:** [@testa](https://root-forum.cern.ch/u/testa)\
**Replies:** 6\
**Last updated:** [January 6, 2021, 6:07pm UTC](https://root-forum.cern.ch/t/regression-with-constraints/42936 "2021-01-06T18:07:48Z")

</div>

Dear experts, is it possibile to add a constraint while using a regression? I would like to adding an invariant mass constraint when estimating a kinematic quantity. Best, Marianna.

---

## [BDT without decay](https://root-forum.cern.ch/t/bdt-without-decay/42968)

<div class="topic-metadata">

**Author:** [@Antara](https://root-forum.cern.ch/u/Antara)\
**Replies:** 2\
**Last updated:** [January 6, 2021, 2:55pm UTC](https://root-forum.cern.ch/t/bdt-without-decay/42968 "2021-01-06T14:55:46Z")

</div>

Hi!! I am a newbie in TMVA. I wish to study vector boson fusion process production of higgs. However I am only interested in the two jets’ properties. And what higgs decays to, is not of prior interest presently. Could …

---

## [Converting TMVA PyKeras output with lwtnn - variable normalization details](https://root-forum.cern.ch/t/converting-tmva-pykeras-output-with-lwtnn-variable-normalization-details/42830)

<div class="topic-metadata">

**Author:** [@janina.anna.krzysiak](https://root-forum.cern.ch/u/janina.anna.krzysiak)\
**Replies:** 5\
**Last updated:** [January 5, 2021, 4:59pm UTC](https://root-forum.cern.ch/t/converting-tmva-pykeras-output-with-lwtnn-variable-normalization-details/42830 "2021-01-05T16:59:46Z")

</div>

Hi TMVA Experts, I have a model trained using TMVA PyKeras that I need to apply within an analysis framework where tensorflow/keras are unavailable. Therefore, I’m trying to convert the model to a standard JSON format w…

---

## [How are sensitivity and specificity computed in TMVA::ROCCurve?](https://root-forum.cern.ch/t/how-are-sensitivity-and-specificity-computed-in-tmva-roccurve/42806)

<div class="topic-metadata">

**Author:** [@Str55](https://root-forum.cern.ch/u/Str55)\
**Replies:** 4\
**Last updated:** [January 5, 2021, 8:27am UTC](https://root-forum.cern.ch/t/how-are-sensitivity-and-specificity-computed-in-tmva-roccurve/42806 "2021-01-05T08:27:35Z")

</div>

Dear experts, I’m a little confused how specificity and sensitivity are computed in TMVA::ROCCurve. I was under the assumption that they would be determined by looping over a bunch of operating points and finding sEff …

---

## [Multiple INPUT files](https://root-forum.cern.ch/t/multiple-input-files/42674)

<div class="topic-metadata">

**Author:** [@rithishbarath](https://root-forum.cern.ch/u/rithishbarath)\
**Replies:** 2\
**Last updated:** [December 11, 2020, 9:08am UTC](https://root-forum.cern.ch/t/multiple-input-files/42674 "2020-12-11T09:08:57Z")

</div>

Dear people I would like to know how to get multiple input files in TMVA. For example TFile \*input(0); TString fname = “./tmva\_class\_example.root”; if (!gSystem-\>AccessPathName( fname )) { input = TFile::Open( fname…

---

## [Signal and background from the output MVA](https://root-forum.cern.ch/t/signal-and-background-from-the-output-mva/42652)

<div class="topic-metadata">

**Author:** [@Manuel\_Torres](https://root-forum.cern.ch/u/Manuel_Torres)\
**Replies:** 5\
**Last updated:** [December 11, 2020, 8:32am UTC](https://root-forum.cern.ch/t/signal-and-background-from-the-output-mva/42652 "2020-12-11T08:32:14Z")

</div>

Hello root family, I’m working with the tmva, I already did a Tmvaclassification and a tmvaclassificationApplication, and I saved the output of the TMVAClassificationApplication in a Branch, now I want to access to the …

---

## [How to increase granularity of ROC?](https://root-forum.cern.ch/t/how-to-increase-granularity-of-roc/42581)

<div class="topic-metadata">

**Author:** [@jlee](https://root-forum.cern.ch/u/jlee)\
**Replies:** 8\
**Last updated:** [December 7, 2020, 11:07am UTC](https://root-forum.cern.ch/t/how-to-increase-granularity-of-roc/42581 "2020-12-07T11:07:10Z")

</div>

Dear ROOT experts, I’m doing TMVA by following the tutorial macro named TMVAClassification.C: I saw that the ROC expressed with 99 points from 0 to 1 in the output of TMVA. I want to increase the granularity of RO…

---

## [TMVA output plots without using GUI](https://root-forum.cern.ch/t/tmva-output-plots-without-using-gui/42423)

<div class="topic-metadata">

**Author:** [@zoso](https://root-forum.cern.ch/u/zoso)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 2:44pm UTC](https://root-forum.cern.ch/t/tmva-output-plots-without-using-gui/42423 "2020-11-25T14:44:43Z")

</div>

Hi everyone, I trained different methods using TMVA, obtained the output and weight files, and now I want to display the results in several plots. I know there are some macros/scripts to produce these plots (e.g. varia…

---

## [AddSpectator variable crashes with segmentation violation in multi class kPyKeras TMVA](https://root-forum.cern.ch/t/addspectator-variable-crashes-with-segmentation-violation-in-multi-class-kpykeras-tmva/42210)

<div class="topic-metadata">

**Author:** [@okarache](https://root-forum.cern.ch/u/okarache)\
**Replies:** 4\
**Last updated:** [November 23, 2020, 5:57pm UTC](https://root-forum.cern.ch/t/addspectator-variable-crashes-with-segmentation-violation-in-multi-class-kpykeras-tmva/42210 "2020-11-23T17:57:57Z")

</div>

Dear ROOT experts, could you help to figure out the cause of the segmentation violation crash when using pyKERAS multi classifier in TMVA, please? Below I will summarize the examples I was following and attach the code…

---

## [Condition in Tcut in TMVA](https://root-forum.cern.ch/t/condition-in-tcut-in-tmva/42340)

<div class="topic-metadata">

**Author:** [@Manuel\_Torres](https://root-forum.cern.ch/u/Manuel_Torres)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 11:10am UTC](https://root-forum.cern.ch/t/condition-in-tcut-in-tmva/42340 "2020-11-20T11:10:45Z")

</div>

Hello root family, I’m working in my TMVA, following the TMVAtutorialClassification https://root.cern.ch/doc/v610/TMVAClassification\_8C.html. But I need to work with values \< 0.5, for this I created a Variable (Branch)…

---

## [Error in installing TMVA](https://root-forum.cern.ch/t/error-in-installing-tmva/42189)

<div class="topic-metadata">

**Author:** [@elizaveta](https://root-forum.cern.ch/u/elizaveta)\
**Replies:** 6\
**Last updated:** [November 10, 2020, 6:19pm UTC](https://root-forum.cern.ch/t/error-in-installing-tmva/42189 "2020-11-10T18:19:38Z")

</div>

Hello,after command “make” in /tmva i got this.What should i do?

---

## [Input variable in TMVA](https://root-forum.cern.ch/t/input-variable-in-tmva/42185)

<div class="topic-metadata">

**Author:** [@elizaveta](https://root-forum.cern.ch/u/elizaveta)\
**Replies:** 2\
**Last updated:** [November 10, 2020, 8:22am UTC](https://root-forum.cern.ch/t/input-variable-in-tmva/42185 "2020-11-10T08:22:55Z")

</div>

Hello,please,help me with this question: Can TMVA use a raster picture like this as an input variable ? and perform the simplest regression analysis for reconstruction of partical trajectory(straight line)?

---

## [Unable to RUN TMVA . GUI NOT Opening in ROOT VERSION 6.22.02](https://root-forum.cern.ch/t/unable-to-run-tmva-gui-not-opening-in-root-version-6-22-02/42090)

<div class="topic-metadata">

**Author:** [@rithishbarath](https://root-forum.cern.ch/u/rithishbarath)\
**Replies:** 11\
**Last updated:** [November 5, 2020, 10:14am UTC](https://root-forum.cern.ch/t/unable-to-run-tmva-gui-not-opening-in-root-version-6-22-02/42090 "2020-11-05T10:14:50Z")

</div>

TMVA::OpenFile ..

---

## [ROC Integral from Test and Training sample](https://root-forum.cern.ch/t/roc-integral-from-test-and-training-sample/42026)

<div class="topic-metadata">

**Author:** [@jruizvid](https://root-forum.cern.ch/u/jruizvid)\
**Replies:** 2\
**Last updated:** [October 27, 2020, 5:33pm UTC](https://root-forum.cern.ch/t/roc-integral-from-test-and-training-sample/42026 "2020-10-27T17:33:46Z")

</div>

Dear Experts, I want to obtain the ROC integral for the train and test sample. So far I used factory-\>GetROCIntegral("dataset","BDT"); but I couldn’t find out if this corresponds to the train or to the test sample. An…

---

## [Makefile not found in tmva folder](https://root-forum.cern.ch/t/makefile-not-found-in-tmva-folder/41474)

<div class="topic-metadata">

**Author:** [@adityadash](https://root-forum.cern.ch/u/adityadash)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 10:24am UTC](https://root-forum.cern.ch/t/makefile-not-found-in-tmva-folder/41474 "2020-10-06T10:24:09Z")

</div>

Hello, I have root version 6.14/02. I went through the TMVA users guide in which it is mentioned that to build the library we have to execute make in tmva directory. However, in the tmva folder of root, there is no m…

---

## [Permutation feature importance for TMVA model](https://root-forum.cern.ch/t/permutation-feature-importance-for-tmva-model/41706)

<div class="topic-metadata">

**Author:** [@apetukho](https://root-forum.cern.ch/u/apetukho)\
**Replies:** 1\
**Last updated:** [October 5, 2020, 3:27pm UTC](https://root-forum.cern.ch/t/permutation-feature-importance-for-tmva-model/41706 "2020-10-05T15:27:48Z")

</div>

Dear ROOT experts, I want to implement the permutation feature importance estimation algorithm for the BDT model created with the TMVA package. I see three ways of doing it, but all have some issues. The first would be…

---

## [TMVA TensorFlow Keras interface with python3](https://root-forum.cern.ch/t/tmva-tensorflow-keras-interface-with-python3/41675)

<div class="topic-metadata">

**Author:** [@angirar](https://root-forum.cern.ch/u/angirar)\
**Replies:** 3\
**Last updated:** [October 5, 2020, 1:24pm UTC](https://root-forum.cern.ch/t/tmva-tensorflow-keras-interface-with-python3/41675 "2020-10-05T13:24:18Z")

</div>

Hello, I am trying to load a TensorFlow Keras model file (in h5 format) using the BookMethod and type as “PyKerasNN”. But this seems to be crashing \[1\]. This has worked with plain Keras but doesn’t work with TensorFlow …

---

## [Handling missing values in the TMVA](https://root-forum.cern.ch/t/handling-missing-values-in-the-tmva/41672)

<div class="topic-metadata">

**Author:** [@apetukho](https://root-forum.cern.ch/u/apetukho)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 2:50pm UTC](https://root-forum.cern.ch/t/handling-missing-values-in-the-tmva/41672 "2020-10-02T14:50:44Z")

</div>

Dear ROOT experts, Is there a way to automatically treat missing values for the input variables/features in the TMVA algorithms? An example could be a third jet variable in events that pass N(jets) \>= 2 requirement. Th…

---

## [Problem building TMVA with CUDA](https://root-forum.cern.ch/t/problem-building-tmva-with-cuda/41460)

<div class="topic-metadata">

**Author:** [@olin](https://root-forum.cern.ch/u/olin)\
**Replies:** 10\
**Last updated:** [October 1, 2020, 6:35pm UTC](https://root-forum.cern.ch/t/problem-building-tmva-with-cuda/41460 "2020-10-01T18:35:36Z")

</div>

My build of root-6.22.02 with cuda fails at the stage of loading the cuda library objects needed for tmva. A working root.exe is produced, but I am missing the libtmva library. I have installed the cuda 11.0 toolkit and…

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

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