# TMVA: printing variable rank

**URL:** <https://root-forum.cern.ch/t/tmva-printing-variable-rank/9009>\
**Category:** TMVA\
**Created:** [September 23, 2009, 9:48pm UTC](https://root-forum.cern.ch/t/tmva-printing-variable-rank/9009 "2009-09-23T21:48:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malina](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/malina/32/11174_2.png) [@Malina](https://root-forum.cern.ch/u/Malina)\
**Post date:** [September 23, 2009, 9:48pm UTC](https://root-forum.cern.ch/t/tmva-printing-variable-rank/9009/1 "2009-09-23T21:48:04Z")

</div>

I recently transitioned from TMVA 3.8.13 to TMVA 3.9.5. I’ve had difficulty getting variable rankings to print. When I call the Factory constructor, I pass it an option string of “V” and when I call PrepareTrainingAndTestTree, I also pass an options string including “V”. For extra caution, I even call factory-\>SetVerbose() immediately after factory construction. Finally, when I call factory-\>BookMethod, my options string contains “V”. None of these cause the variable rankings to print. My output contains:

…  
— Factory : Booking method: MLP  
— Factory : Training all methods…  
— Factory : Train method: MLP  
— Factory : [\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>] (100%, time left: 2 sec)  
— Factory : Begin ranking of input variables…  
— Factory :  
— Factory : Testing all classifiers…  
…

So factory is trying to call CreateRanking(). I have many events in my training tree, so I do exceed the minimum in Factory.cxx to print ranks. My guess is the output is being squelched by MethodMLP, but I don’t know how else to set its verbosity level when I’ve already called BookMethod with “V” (I’ve also tried “VerbosityLevel=Info” to no avail). Afaik, methods don’t offer SetVerbose() like factory does.

Thanks for any suggestions,  
Malina

---

<div class="post-metadata">

**Author:** ![hoecker](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/ad7895/32.png) [@hoecker](https://root-forum.cern.ch/u/hoecker)\
**Post date:** [September 24, 2009, 7:23am UTC](https://root-forum.cern.ch/t/tmva-printing-variable-rank/9009/2 "2009-09-24T07:23:25Z")

</div>

Hi Malina,

The variable ranking should be always printed, independently of the verbose status. Something else must be wrong. Could you please send me the complete log output (privately to [andreas.hoecker@cern.ch](mailto:andreas.hoecker@cern.ch)).

Thanks,  
Andreas

---

<div class="post-metadata">

**Author:** ![stelzer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@stelzer](https://root-forum.cern.ch/u/stelzer)\
**Post date:** [September 28, 2009, 12:03am UTC](https://root-forum.cern.ch/t/tmva-printing-variable-rank/9009/3 "2009-09-28T00:03:04Z")

</div>

Hi Malina and Andreas,

just to confirm: I just tested MLP with 3.9.5 and the variable ranking was printed for MLP.

Regards,  
Joerg

---

<div class="post-metadata">

**Author:** ![hoecker](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/ad7895/32.png) [@hoecker](https://root-forum.cern.ch/u/hoecker)\
**Post date:** [September 28, 2009, 7:56am UTC](https://root-forum.cern.ch/t/tmva-printing-variable-rank/9009/4 "2009-09-28T07:56:37Z")

</div>

Hi Joerg,

Yes, we had discussed this with Malina offline. She runs the TMVA Factory inside the CMS software. It appears as if there were a destructive interference between the CMS output streamer and the TMVA MsgLogger ?!

Cheers,  
Andreas
