# \<GetSeparation\> error in TMVA

**URL:** <https://root-forum.cern.ch/t/getseparation-error-in-tmva/16701>\
**Category:** TMVA\
**Created:** [September 28, 2013, 3:11am UTC](https://root-forum.cern.ch/t/getseparation-error-in-tmva/16701 "2013-09-28T03:11:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shilpi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/958977/32.png) [@Shilpi](https://root-forum.cern.ch/u/Shilpi)\
**Post date:** [September 28, 2013, 3:11am UTC](https://root-forum.cern.ch/t/getseparation-error-in-tmva/16701/1 "2013-09-28T03:11:28Z")

</div>

Dear experts,

I am trying to run TMVA code over my rootfiles  
but it is giving the following error [1].  
None of my variables are nan.  
Please find the code attached which I am using.  
Could you please shed some light on the error?

Thanks,  
Shilpi

[1]

```auto
-- TFHandler_Factory : -----------------------------------------------------------
--- TFHandler_Factory : Variable Mean RMS [Min Max]
--- TFHandler_Factory : -----------------------------------------------------------
--- TFHandler_Factory : frac1: 0.24938 0.018403 [0.20396 0.32129]
--- TFHandler_Factory : frac2: 0.25043 0.019248 [0.21082 0.31136]
--- TFHandler_Factory : frac3: 0.25011 0.019234 [0.21082 0.31325]
--- TFHandler_Factory : frac4: 0.25008 0.019291 [0.21993 0.37440]
--- TFHandler_Factory : -----------------------------------------------------------
--- TFHandler_Factory : Plot event variables for Id
--- TFHandler_Factory : Create scatter and profile plots in target-file directory: 
--- TFHandler_Factory : TMVA.root:/InputVariables_Id/CorrelationPlots
--- Deco : Preparing the Decorrelation transformation...
--- <WARNING> Tools : <GetSQRootMatrix> error in matrix diagonalization; printed S and B
--- <WARNING> Tools : <GetSQRootMatrix> error in matrix diagonalization; printed S and B
--- <WARNING> Tools : <GetSQRootMatrix> error in matrix diagonalization; printed S and B
--- TFHandler_Factory : -----------------------------------------------------------
--- TFHandler_Factory : Variable Mean RMS [Min Max]
--- TFHandler_Factory : -----------------------------------------------------------
--- TFHandler_Factory : frac1: -nan -nan [1.7977e+308-1.7977e+308]
--- TFHandler_Factory : frac2: -nan -nan [1.7977e+308-1.7977e+308]
--- TFHandler_Factory : frac3: -nan -nan [1.7977e+308-1.7977e+308]
--- TFHandler_Factory : frac4: -nan -nan [1.7977e+308-1.7977e+308]
--- TFHandler_Factory : -----------------------------------------------------------
--- TFHandler_Factory : Plot event variables for Deco
--- Tools : -nan -nan -nan -nan -nan -nan
--- <FATAL> Tools : <GetSeparation> signal and background histograms have different or invalid dimensions:
***> abort program execution
```

[TMVAClassification.C](https://root-forum.cern.ch/uploads/default/original/2X/d/ded3c0094ad25b470b8cef648465068b1a593108.C) (26.9 KB)

---

<div class="post-metadata">

**Author:** ![rain](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/e95f7d/32.png) [@rain](https://root-forum.cern.ch/u/rain)\
**Post date:** [May 31, 2022, 5:35pm UTC](https://root-forum.cern.ch/t/getseparation-error-in-tmva/16701/2 "2022-05-31T17:35:31Z")

</div>

Hi,  
I have the same problem :’( Could someone please shed some light on the error?  
Thanks,  
zzl

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [June 2, 2022, 11:48am UTC](https://root-forum.cern.ch/t/getseparation-error-in-tmva/16701/3 "2022-06-02T11:48:59Z")

</div>

I think @moneta can help.

---

<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:** [June 2, 2022, 3:38pm UTC](https://root-forum.cern.ch/t/getseparation-error-in-tmva/16701/4 "2022-06-02T15:38:24Z")

</div>

Hi,  
If you are sure none of the input variable is a NaN, it is possible that they are obtained from the pre-processing transformation. In the example above, I think it has been caused by using the `D` (decor relation) transformation. Which variable transformation are you using it ?

Lorenzo
