# How to see the regression expression

**URL:** <https://root-forum.cern.ch/t/how-to-see-the-regression-expression/26429>\
**Category:** TMVA\
**Created:** [October 3, 2017, 6:11am UTC](https://root-forum.cern.ch/t/how-to-see-the-regression-expression/26429 "2017-10-03T06:11:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uzair90](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/839c29/32.png) [@uzair90](https://root-forum.cern.ch/u/uzair90)\
**Post date:** [October 3, 2017, 6:11am UTC](https://root-forum.cern.ch/t/how-to-see-the-regression-expression/26429/1 "2017-10-03T06:11:59Z")

</div>

Hello,

I just wanted to know that when we do a TMVA regression analysis how do we extract the expression that the TMVA training and testing has come up with for regression? I want to see that expression. Can someone please guide me?

Thanks,  
Uzair

---

<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:** [October 9, 2017, 7:40am UTC](https://root-forum.cern.ch/t/how-to-see-the-regression-expression/26429/2 "2017-10-09T07:40:30Z")

</div>

Hi,

I am not sure exactly which expression you want to see. TMVA uses a complex algorithm to perform the prediction. The algorithm can be a deep neural network or a set of decision trees, depending what you have chosen.  
If you are interested to know how to apply the algorithm in the data you can look at the macro,  
TMVARegressionApplication.C, see

[https://root.cern.ch/doc/master/TMVARegressionApplication\_8C.html](https://root.cern.ch/doc/master/TMVARegressionApplication_8C.html)

Best Regards

Lorenzo
