# TMVA MLP output x-axis values

**URL:** <https://root-forum.cern.ch/t/tmva-mlp-output-x-axis-values/14510>\
**Category:** TMVA\
**Created:** [July 2, 2012, 1:49pm UTC](https://root-forum.cern.ch/t/tmva-mlp-output-x-axis-values/14510 "2012-07-02T13:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![disipio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/disipio/32/15919_2.png) [@disipio](https://root-forum.cern.ch/u/disipio)\
**Post date:** [July 2, 2012, 1:49pm UTC](https://root-forum.cern.ch/t/tmva-mlp-output-x-axis-values/14510/1 "2012-07-02T13:49:41Z")

</div>

Dear TMVA users,

I tried the TMVA MLP implementation to perform a regression task. If I plot the resulting distribution of the fitted parameter with

TestTree-\>Draw( “eta” )

the shape looks good but the x-axis range spans from 0 to about 8. Unfortunately, the “truth” distribution range is [-5, 5]. Is there any clean way to “shift back” the output so I can check the consistency of the two histograms e.g. with a KS test? I’m not sure that a simple loop would be enough, the x-range is calculated on the fly by ROOT when I call Draw.

Thanks,  
Riccardo

---

<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:** [May 9, 2017, 1:19pm UTC](https://root-forum.cern.ch/t/tmva-mlp-output-x-axis-values/14510/2 "2017-05-09T13:19:53Z")

</div>

Hi,

This seems to me more a TTree question than a TMVA one. In TTree::Draw you can project in a pre-defined histogram a s following

```auto
TestTree->Draw( "eta >> h1(100,-5,5)" )

```

See “Saving the result of Draw to an histogram” in  
[https://root.cern.ch/doc/master/classTTree.html#a73450649dc6e54b5b94516c468523e45](https://root.cern.ch/doc/master/classTTree.html#a73450649dc6e54b5b94516c468523e45)

Best Regards

Lorenzo
