# How to use TMVA for prediction?

**URL:** <https://root-forum.cern.ch/t/how-to-use-tmva-for-prediction/21427>\
**Category:** TMVA\
**Created:** [June 27, 2016, 6:47am UTC](https://root-forum.cern.ch/t/how-to-use-tmva-for-prediction/21427 "2016-06-27T06:47:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Li\_Huang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@Li\_Huang](https://root-forum.cern.ch/u/Li_Huang)\
**Post date:** [June 27, 2016, 6:47am UTC](https://root-forum.cern.ch/t/how-to-use-tmva-for-prediction/21427/1 "2016-06-27T06:47:26Z")

</div>

Hi all,  
Does TMVA have any default way to do prediction just like in scikit-learn , the predict method? So we can predict the event belongs to which categories after testing and training.

Best,  
Li

---

<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 27, 2016, 8:52am UTC](https://root-forum.cern.ch/t/how-to-use-tmva-for-prediction/21427/2 "2016-06-27T08:52:30Z")

</div>

Did you find any thing here:

[tmva.sourceforge.net/docu/TMVAUsersGuide.pdf](http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf)

?

---

<div class="post-metadata">

**Author:** ![Li\_Huang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/848f3c/32.png) [@Li\_Huang](https://root-forum.cern.ch/u/Li_Huang)\
**Post date:** [June 27, 2016, 9:39am UTC](https://root-forum.cern.ch/t/how-to-use-tmva-for-prediction/21427/3 "2016-06-27T09:39:11Z")

</div>

[quote=“couet”]Did you find any thing here:

[tmva.sourceforge.net/docu/TMVAUsersGuide.pdf](http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf)

?[/quote]

Hi,

Thanks, I checked it but no result. At least I don’t find a function to do that.

Best,  
Li
