# Problem with TMVA

**URL:** <https://root-forum.cern.ch/t/problem-with-tmva/27668>\
**Category:** TMVA\
**Created:** [January 22, 2018, 12:03pm UTC](https://root-forum.cern.ch/t/problem-with-tmva/27668 "2018-01-22T12:03:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/geo/32/15552_2.png) [@Geo](https://root-forum.cern.ch/u/Geo)\
**Post date:** [January 22, 2018, 12:03pm UTC](https://root-forum.cern.ch/t/problem-with-tmva/27668/1 "2018-01-22T12:03:55Z")

</div>

Hello, I have an issue with TMVA. While I am trying to do the training and the testing (BDT) I get the following result:  
— Tools : error in matrix diagonalization; printed S and B

and (for one of many variables):  
– TFHandler\_Factory : Variable Mean RMS [Min Max]  
— TFHandler\_Factory : -----------------------------------------------------------------------------------------  
— TFHandler\_Factory : ratio: -nan -nan [1.7977e+308 -1.7977e+308]

and the training stops with the following message:

— Tools : signal and background histograms have different or invalid dimensions:

I looked online and they are proposing that in:

TMVA::Factory \*factory = new TMVA::Factory( “TMVAClassification”, outputFile,  
"!V:!Silent:Color:DrawProgressBar:Transformations=I;D;P;G,D:AnalysisType=Classification" );

I leave only Transformations=I;

But won’t this affect my analysis?

Since I m a rookie, does anyone know what to do?

Cheers  
George

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [January 22, 2018, 2:03pm UTC](https://root-forum.cern.ch/t/problem-with-tmva/27668/2 "2018-01-22T14:03:00Z")

</div>

Hi,

Can you post please your macro and your data so I can look at your problem

Cheers

Lorenzo

---

<div class="post-metadata">

**Author:** ![Geo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/geo/32/15552_2.png) [@Geo](https://root-forum.cern.ch/u/Geo)\
**Post date:** [January 22, 2018, 2:12pm UTC](https://root-forum.cern.ch/t/problem-with-tmva/27668/3 "2018-01-22T14:12:46Z")

</div>

[TMVAClassification.C](https://root-forum.cern.ch/uploads/default/original/2X/a/aab62396d4e307fa0ed9dab35de9d8adc5c7c961.C) (29.1 KB)

This is the macro although I think that the problem is not there. The issue is the calculation of the decorrelation matrix and I found online the proposal to erase its calculation when I call the TMVA factory but I am worried that this will affect the procedure…?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 5, 2018, 2:12pm UTC](https://root-forum.cern.ch/t/problem-with-tmva/27668/4 "2018-02-05T14:12:59Z")

</div>

Closed on February 5, 2018, 2:12pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
