# Inconsistency between EvaluateRegression and TMVAReg.root output file

**URL:** <https://root-forum.cern.ch/t/inconsistency-between-evaluateregression-and-tmvareg-root-output-file/43659>\
**Category:** TMVA\
**Created:** [February 22, 2021, 3:08pm UTC](https://root-forum.cern.ch/t/inconsistency-between-evaluateregression-and-tmvareg-root-output-file/43659 "2021-02-22T15:08:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![testa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/958977/32.png) [@testa](https://root-forum.cern.ch/u/testa)\
**Post date:** [February 22, 2021, 3:08pm UTC](https://root-forum.cern.ch/t/inconsistency-between-evaluateregression-and-tmvareg-root-output-file/43659/1 "2021-02-22T15:08:12Z")

</div>

Dear Experts,  
I’m reading a xml file for a regression into an analysis code.  
The values of the target I get from  
reader-\>EvaluateRegression( “BDTG” ))[0];  
are not the same, in the same event, as those stored in the output file TMVAReg.root of TMVARegression.C I used.  
[small\_ana.C](https://root-forum.cern.ch/uploads/short-url/99sXH54umx20OQJ8UH1dojaaOLU.C) (14.5 KB)  
I attached the TMVARegression.C and the code (L 183[TMVARegression.C](https://root-forum.cern.ch/uploads/short-url/lOCs8Xca0MFbF0JdPd3Qo8goJGE.C) (32.8 KB) )

Best, Marianna.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [February 22, 2021, 5:03pm UTC](https://root-forum.cern.ch/t/inconsistency-between-evaluateregression-and-tmvareg-root-output-file/43659/2 "2021-02-22T17:03:23Z")

</div>

Maybe @moneta can take a look

---

<div class="post-metadata">

**Author:** ![testa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/958977/32.png) [@testa](https://root-forum.cern.ch/u/testa)\
**Post date:** [February 22, 2021, 7:20pm UTC](https://root-forum.cern.ch/t/inconsistency-between-evaluateregression-and-tmvareg-root-output-file/43659/3 "2021-02-22T19:20:32Z")

</div>

Hello, I had a silly bug in the input variables in the analysis code. I have now consistency. Sorry for spamming!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [February 22, 2021, 7:23pm UTC](https://root-forum.cern.ch/t/inconsistency-between-evaluateregression-and-tmvareg-root-output-file/43659/4 "2021-02-22T19:23:39Z")

</div>

OK, no problem, thanks for letting us know!
