# TMVA

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

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

---

## [Problems with Significance plot using PyKeras](https://root-forum.cern.ch/t/problems-with-significance-plot-using-pykeras/39879)

<div class="topic-metadata">

**Author:** [@Tommaso\_Diotalevi](https://root-forum.cern.ch/u/Tommaso_Diotalevi)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 6:19pm UTC](https://root-forum.cern.ch/t/problems-with-significance-plot-using-pykeras/39879 "2020-06-11T18:19:26Z")

</div>

Dear experts, I am currently experiencing some issues using the PyKeras model. In particular, at the end of training, I can’t visualise the curve that shows the significance values in function of the cut value. No matt…

---

## [Problems with TMVA Reader and TLorentzVectors](https://root-forum.cern.ch/t/problems-with-tmva-reader-and-tlorentzvectors/39753)

<div class="topic-metadata">

**Author:** [@WilliamK](https://root-forum.cern.ch/u/WilliamK)\
**Replies:** 6\
**Last updated:** [June 5, 2020, 9:59am UTC](https://root-forum.cern.ch/t/problems-with-tmva-reader-and-tlorentzvectors/39753 "2020-06-05T09:59:37Z")

</div>

Dear Experts, After performing some TMVA classification, I am trying to apply it. My classificator uses some variables (17) some of which are fromt TLorentzVector in the form “bjet.Pt()” for example. So following the…

---

## [TMVA - Signal/Background target responses inverted?](https://root-forum.cern.ch/t/tmva-signal-background-target-responses-inverted/25521)

<div class="topic-metadata">

**Author:** [@jonesc](https://root-forum.cern.ch/u/jonesc)\
**Replies:** 7\
**Last updated:** [June 4, 2020, 2:12pm UTC](https://root-forum.cern.ch/t/tmva-signal-background-target-responses-inverted/25521 "2020-06-04T14:12:13Z")

</div>

Hi, After a while away from running TMVA I am back looking at the new DNN MVA in ROOT 6.10.02. I have noticed what appears to me slightly odd behavior, which is in some of my trainings the target response (1 or 0) for …

---

## [Problem withSetBranchAddress after Classification](https://root-forum.cern.ch/t/problem-withsetbranchaddress-after-classification/39747)

<div class="topic-metadata">

**Author:** [@WilliamK](https://root-forum.cern.ch/u/WilliamK)\
**Replies:** 1\
**Last updated:** [June 4, 2020, 8:06am UTC](https://root-forum.cern.ch/t/problem-withsetbranchaddress-after-classification/39747 "2020-06-04T08:06:58Z")

</div>

Dear experts, I successfully performed classification with TMVA. In between the variables of the classfication are variables called e.g ‘bjet.Pt()’ where bjet is a TLorentzVector. Now that I want to apply my classifica…

---

## [How to customise separation gain and boosting weight in BDTs?](https://root-forum.cern.ch/t/how-to-customise-separation-gain-and-boosting-weight-in-bdts/39577)

<div class="topic-metadata">

**Author:** [@oguloncel](https://root-forum.cern.ch/u/oguloncel)\
**Replies:** 4\
**Last updated:** [May 28, 2020, 1:28pm UTC](https://root-forum.cern.ch/t/how-to-customise-separation-gain-and-boosting-weight-in-bdts/39577 "2020-05-28T13:28:07Z")

</div>

Dear Experts, I am trying to understand how the separation gain (for example Gini) and boosting weight expressions can be customised/modified in classification problems with BDTs. To provide some context, what I am try…

---

## [TMVAGui in Root 6](https://root-forum.cern.ch/t/tmvagui-in-root-6/19396)

<div class="topic-metadata">

**Author:** [@Amilkar](https://root-forum.cern.ch/u/Amilkar)\
**Replies:** 9\
**Last updated:** [May 27, 2020, 5:58pm UTC](https://root-forum.cern.ch/t/tmvagui-in-root-6/19396 "2020-05-27T17:58:11Z")

</div>

How do I run the TMVAGui in Root 6? Before it was at $ROOTSYS/test/TMVAGui.C Now I do not know where is it or how to call it? It runs fine at the end of the training but now I have the TMVA.root file and do not know how …

---

## [TMVA kDL documentation](https://root-forum.cern.ch/t/tmva-kdl-documentation/38952)

<div class="topic-metadata">

**Author:** [@NikolaMakovec](https://root-forum.cern.ch/u/NikolaMakovec)\
**Replies:** 6\
**Last updated:** [May 27, 2020, 2:19pm UTC](https://root-forum.cern.ch/t/tmva-kdl-documentation/38952 "2020-05-27T14:19:21Z")

</div>

Dear experts, Where can I find documentation about ROOT.TMVA.Types.kDL which seems to replace ROOT.TMVA.Types.kDNN? In particular, I am eager to know the motivation of this change and what are the novelties? Cheers, N…

---

## [Possible BDT ROC Curve Inaccuracy](https://root-forum.cern.ch/t/possible-bdt-roc-curve-inaccuracy/39592)

<div class="topic-metadata">

**Author:** [@Str55](https://root-forum.cern.ch/u/Str55)\
**Replies:** 1\
**Last updated:** [May 26, 2020, 7:31am UTC](https://root-forum.cern.ch/t/possible-bdt-roc-curve-inaccuracy/39592 "2020-05-26T07:31:57Z")

</div>

Hi experts, I’ve noticed some interesting behavior in the ROC curves produced by TMVA when training BDTs. As a check, I took the training points found in dataset/TrainTree and ran them through TMVA::ROCCurve::ROCCurve.…

---

## [Dataloader doesn't see friend when cut is applied in AddTree](https://root-forum.cern.ch/t/dataloader-doesnt-see-friend-when-cut-is-applied-in-addtree/39411)

<div class="topic-metadata">

**Author:** [@avenkate](https://root-forum.cern.ch/u/avenkate)\
**Replies:** 6\
**Last updated:** [May 18, 2020, 3:16pm UTC](https://root-forum.cern.ch/t/dataloader-doesnt-see-friend-when-cut-is-applied-in-addtree/39411 "2020-05-18T15:16:22Z")

</div>

Dear experts, I am trying to use MultiClass classification with some of the input variables stored in friend trees. Things run smoothly when I add the input trees to dataloader without any cuts. But when I do apply a c…

---

## [PyROOT TMVA BookMethod gives segfault](https://root-forum.cern.ch/t/pyroot-tmva-bookmethod-gives-segfault/38157)

<div class="topic-metadata">

**Author:** [@WilliamK](https://root-forum.cern.ch/u/WilliamK)\
**Replies:** 7\
**Last updated:** [May 18, 2020, 9:33am UTC](https://root-forum.cern.ch/t/pyroot-tmva-bookmethod-gives-segfault/38157 "2020-05-18T09:33:52Z")

</div>

Hi all, I’m trying to load several signal and background trees from a loop using python with pyROOT, but I am having some strange error with BookMethod. This is the message I get: Factory : Booking me…

---

## [TMVA Plot Roc Curve From Test-Points](https://root-forum.cern.ch/t/tmva-plot-roc-curve-from-test-points/39273)

<div class="topic-metadata">

**Author:** [@Str55](https://root-forum.cern.ch/u/Str55)\
**Replies:** 4\
**Last updated:** [May 6, 2020, 1:59pm UTC](https://root-forum.cern.ch/t/tmva-plot-roc-curve-from-test-points/39273 "2020-05-06T13:59:24Z")

</div>

Hi, I have a question about making a roc curve using TMVA. I have an array of the known weights of some events: known\_weights = \[1, 1, -1, 1, -1 ...\] and what my BDTs in TMVA evaluated those events to: tmva\_eval = \[0.…

---

## [BDT Event Weighting](https://root-forum.cern.ch/t/bdt-event-weighting/37871)

<div class="topic-metadata">

**Author:** [@dom\_barker](https://root-forum.cern.ch/u/dom_barker)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 4:52pm UTC](https://root-forum.cern.ch/t/bdt-event-weighting/37871 "2020-04-30T16:52:40Z")

</div>

Hi TMVA/BDT Experts, I’m new to using TMVA and BDTs and I have a question about the renormalising of events. I have read online that the BDT algorithms in TMVA renormalise the signal and background events such that the…

---

## [Full path to state file PyGTBModel\_GTB.PyData is not propagated to the xml file with training weights](https://root-forum.cern.ch/t/full-path-to-state-file-pygtbmodel-gtb-pydata-is-not-propagated-to-the-xml-file-with-training-weights/39013)

<div class="topic-metadata">

**Author:** [@okarache](https://root-forum.cern.ch/u/okarache)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 2:15pm UTC](https://root-forum.cern.ch/t/full-path-to-state-file-pygtbmodel-gtb-pydata-is-not-propagated-to-the-xml-file-with-training-weights/39013 "2020-04-22T14:15:07Z")

</div>

Hello, could you help us to figure out how to force full path to the state file PyGTBModel\_GTB.PyData, please? We are using ROOT.TMVA.Types.kPyGTB for the training ant testing. data loader is called dataset\_pymva: TMVA…

---

## [factory.TrainAllMethods() crashes with TypeError when using PyKeras](https://root-forum.cern.ch/t/factory-trainallmethods-crashes-with-typeerror-when-using-pykeras/38629)

<div class="topic-metadata">

**Author:** [@Anirudh\_Dagar](https://root-forum.cern.ch/u/Anirudh_Dagar)\
**Replies:** 6\
**Last updated:** [March 31, 2020, 6:47pm UTC](https://root-forum.cern.ch/t/factory-trainallmethods-crashes-with-typeerror-when-using-pykeras/38629 "2020-03-31T18:47:02Z")

</div>

I’m trying to run a custom pykeras model similar to the tutorial here: https://github.com/lmoneta/tmva-tutorial/blob/master/notebooks/TMVA\_CNN\_Classification\_py.ipynb When the training is called on the methods factory.…

---

## [Specify absolute path for DataLoader output](https://root-forum.cern.ch/t/specify-absolute-path-for-dataloader-output/38541)

<div class="topic-metadata">

**Author:** [@mwilkins](https://root-forum.cern.ch/u/mwilkins)\
**Replies:** 4\
**Last updated:** [March 26, 2020, 2:14pm UTC](https://root-forum.cern.ch/t/specify-absolute-path-for-dataloader-output/38541 "2020-03-26T14:14:26Z")

</div>

One specifies the output directory for a DataLoader using the thedlName input parameter: mydl = DataLoader("output/directory") This results in the creation of output/directory/weights/, which contains the requisite .xm…

---

## [TMVA Get Single Decision Tree From Forest](https://root-forum.cern.ch/t/tmva-get-single-decision-tree-from-forest/38546)

<div class="topic-metadata">

**Author:** [@Str55](https://root-forum.cern.ch/u/Str55)\
**Replies:** 3\
**Last updated:** [March 24, 2020, 2:15pm UTC](https://root-forum.cern.ch/t/tmva-get-single-decision-tree-from-forest/38546 "2020-03-24T14:15:54Z")

</div>

Hello, For a very specific application of boosted decision trees, I would like to, after training my classifier with many trees, evaluate an event with a single one of those trees. I have found no method built into TMVA…

---

## [Using a larger sample size, TMVA appears to crash at TMVA:: Factory::TestAllMethods()](https://root-forum.cern.ch/t/using-a-larger-sample-size-tmva-appears-to-crash-at-tmva-factory-testallmethods/38471)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 8\
**Last updated:** [March 24, 2020, 11:02am UTC](https://root-forum.cern.ch/t/using-a-larger-sample-size-tmva-appears-to-crash-at-tmva-factory-testallmethods/38471 "2020-03-24T11:02:00Z")

</div>

Hello, The following macro trainKLCoeffsWithImpulsivityAndLinPolFracResponsesSemiweighted.C (17.6 KB) ran to completion when I ran it, but when I scaled it up to a data set that was 10x larger using trainKLCoeffsFull…

---

## [Precedence for the separation of a classfier (\<S^2\>)?](https://root-forum.cern.ch/t/precedence-for-the-separation-of-a-classfier-s-2/38231)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 1\
**Last updated:** [March 10, 2020, 8:09am UTC](https://root-forum.cern.ch/t/precedence-for-the-separation-of-a-classfier-s-2/38231 "2020-03-10T08:09:28Z")

</div>

Out of curiosity, I wanted to find more about the separation \<S^2\>, corresponding to equation (1) in section 3.1.10 in the TMVA User’s Guide. The reference \[7\] that the Guide links to appears to now be a dead link, so I …

---

## [BDT XML Weights Tags](https://root-forum.cern.ch/t/bdt-xml-weights-tags/38332)

<div class="topic-metadata">

**Author:** [@Str55](https://root-forum.cern.ch/u/Str55)\
**Replies:** 1\
**Last updated:** [March 9, 2020, 9:15pm UTC](https://root-forum.cern.ch/t/bdt-xml-weights-tags/38332 "2020-03-09T21:15:15Z")

</div>

Hi, I had a quick question about what I’m seeing in my XML weights file that gets produced when I make a bdt. I’ve been operating under the assumption that the IVar attribute under a node tag will be the index of my inp…

---

## [How does TMVA calculate the Kolmogorov probability?](https://root-forum.cern.ch/t/how-does-tmva-calculate-the-kolmogorov-probability/27787)

<div class="topic-metadata">

**Author:** [@denvercoder9](https://root-forum.cern.ch/u/denvercoder9)\
**Replies:** 16\
**Last updated:** [March 6, 2020, 12:23pm UTC](https://root-forum.cern.ch/t/how-does-tmva-calculate-the-kolmogorov-probability/27787 "2020-03-06T12:23:42Z")

</div>

Hi, I am trying to reproduce the values of the Kolmogorov-Smirnov test that is given in “(4b) Classifier Output Distributions (test and training samples superimposed)”. So far I tried two approaches that both fail to re…

---

## [How to recompile cxx TMVA code on Centos7](https://root-forum.cern.ch/t/how-to-recompile-cxx-tmva-code-on-centos7/38221)

<div class="topic-metadata">

**Author:** [@Judita](https://root-forum.cern.ch/u/Judita)\
**Replies:** 4\
**Last updated:** [March 4, 2020, 2:27pm UTC](https://root-forum.cern.ch/t/how-to-recompile-cxx-tmva-code-on-centos7/38221 "2020-03-04T14:27:22Z")

</div>

Dear TMVA Experts, I would like to recompile my code which was written for TMVA using the .cxx files and Makefile.arch. I successfully recompiled and run the setup using TMVA-v4.2.0 and SLC6, but I am not able to use th…

---

## [TMVA nCuts meaning](https://root-forum.cern.ch/t/tmva-ncuts-meaning/27961)

<div class="topic-metadata">

**Author:** [@jmonroym](https://root-forum.cern.ch/u/jmonroym)\
**Replies:** 5\
**Last updated:** [March 2, 2020, 3:34pm UTC](https://root-forum.cern.ch/t/tmva-ncuts-meaning/27961 "2020-03-02T15:34:54Z")

</div>

Hi all I am a beginner with TMVA and probably this is a naive question. I am reading the manual about BDT and I don’t get very clear what is the meaning of the nCuts parameter Here is what I understand: Samples are s…

---

## [Saving printed results in a file](https://root-forum.cern.ch/t/saving-printed-results-in-a-file/38209)

<div class="topic-metadata">

**Author:** [@Fenou](https://root-forum.cern.ch/u/Fenou)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 2:27pm UTC](https://root-forum.cern.ch/t/saving-printed-results-in-a-file/38209 "2020-03-02T14:27:19Z")

</div>

Dear Experts, I’m using TMVA in order to optimize a selection. I plan to run it in a loop and extract only the significance. Is there any way to save the printed results in a file; I mean the results from TMVA::StatDia…

---

## [Glitch in TMVAMultiClass canvas drawing](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032)

<div class="topic-metadata">

**Author:** [@avenkate](https://root-forum.cern.ch/u/avenkate)\
**Replies:** 6\
**Last updated:** [February 25, 2020, 11:41am UTC](https://root-forum.cern.ch/t/glitch-in-tmvamulticlass-canvas-drawing/38032 "2020-02-25T11:41:12Z")

</div>

Dear experts, I am trying TMVAMultiClass on my laptop with ROOT 6.17/01. Training goes fine, and when I attempt to use TMVAMultiClassGui for the usual graphical stuff, I notice something weird with the canvases drawn fo…

---

## [TMVA GUI doesn't show learning curves](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972)

<div class="topic-metadata">

**Author:** [@LuisCR](https://root-forum.cern.ch/u/LuisCR)\
**Replies:** 10\
**Last updated:** [February 24, 2020, 10:54am UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972 "2020-02-24T10:54:50Z")

</div>

I am doing an analysis with MLPs, so I have added three MLPs to a Factory with different number of neurons. Concretely 8 neurons in a hidden layer, 8+4 in two layers and 12+4. Their names are MLP8, MLP8-4 and MLP12-4. Wh…

---

## [Which version of tensorflow and Keras are OK with TMVA?](https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037)

<div class="topic-metadata">

**Author:** [@cxwx](https://root-forum.cern.ch/u/cxwx)\
**Replies:** 4\
**Last updated:** [February 12, 2020, 5:22pm UTC](https://root-forum.cern.ch/t/which-version-of-tensorflow-and-keras-are-ok-with-tmva/37037 "2020-02-12T17:22:07Z")

</div>

tf 2.0 conflict with TMVA AttributeError: module ‘tensorflow’ has no attribute ‘ConfigProto’

---

## [Separation Power TMVA](https://root-forum.cern.ch/t/separation-power-tmva/37944)

<div class="topic-metadata">

**Author:** [@babar2141](https://root-forum.cern.ch/u/babar2141)\
**Replies:** 2\
**Last updated:** [February 12, 2020, 4:31pm UTC](https://root-forum.cern.ch/t/separation-power-tmva/37944 "2020-02-12T16:31:29Z")

</div>

Dear Experts, The ranking on input variables (method unspecific) is derived using the separation formula, defined as in equation 1 of TMVA Users Guide page 25. I have a simple question. Why there is a factor 1/2 in that…

---

## [Optimizer in TMVA::DNN?](https://root-forum.cern.ch/t/optimizer-in-tmva-dnn/37748)

<div class="topic-metadata">

**Author:** [@physmlee](https://root-forum.cern.ch/u/physmlee)\
**Replies:** 5\
**Last updated:** [January 29, 2020, 9:06am UTC](https://root-forum.cern.ch/t/optimizer-in-tmva-dnn/37748 "2020-01-29T09:06:22Z")

</div>

Hi, everyone? I’m practicing how to use DNN in TMVA. I’d like to use adam optimizer for my network, but I can’t find where and how should I set it. I can only find the way through pymva. I can find ‘Adam.h’, ‘Optimiz…

---

## [Setting validation\_split in TMVA DNN](https://root-forum.cern.ch/t/setting-validation-split-in-tmva-dnn/37744)

<div class="topic-metadata">

**Author:** [@physmlee](https://root-forum.cern.ch/u/physmlee)\
**Replies:** 6\
**Last updated:** [January 28, 2020, 2:35pm UTC](https://root-forum.cern.ch/t/setting-validation-split-in-tmva-dnn/37744 "2020-01-28T14:35:35Z")

</div>

Hello, everyone. I’m new to TMVA. I met a problem when trying MNIST multiclassification in pyTMVA. My purpose is to mimic the well-known MNIST classification code in pyTMVA. (https://colab.research.google.com/github/A…

---

## [Supervised clustering?](https://root-forum.cern.ch/t/supervised-clustering/37669)

<div class="topic-metadata">

**Author:** [@testa](https://root-forum.cern.ch/u/testa)\
**Replies:** 7\
**Last updated:** [January 28, 2020, 1:59pm UTC](https://root-forum.cern.ch/t/supervised-clustering/37669 "2020-01-28T13:59:40Z")

</div>

Dear expert, is there some implementation of a supervised clustering algorithm in root-R? Best, Marianna.

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

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