# TMVA - how to reduce log output?

**URL:** <https://root-forum.cern.ch/t/tmva-how-to-reduce-log-output/8180>\
**Category:** TMVA\
**Created:** [April 14, 2009, 12:48pm UTC](https://root-forum.cern.ch/t/tmva-how-to-reduce-log-output/8180 "2009-04-14T12:48:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PJussel](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/8baadc/32.png) [@PJussel](https://root-forum.cern.ch/u/PJussel)\
**Post date:** [April 14, 2009, 12:48pm UTC](https://root-forum.cern.ch/t/tmva-how-to-reduce-log-output/8180/1 "2009-04-14T12:48:39Z")

</div>

Hello!

Is there in TMVA a way to get rid of warnings when testing a factory? I get quite some “Expression resolves to infinite value (NaN)…” messages and “Event XY rejected” messages I am currently not really interested in, producing quite a big logfile…

One special feature I would like to turn off is the DrawProgressBar, which ends on my system in quite funny and big output.

Cheers  
Patrick

---

<div class="post-metadata">

**Author:** ![brun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@brun](https://root-forum.cern.ch/u/brun)\
**Post date:** [April 15, 2009, 8:44am UTC](https://root-forum.cern.ch/t/tmva-how-to-reduce-log-output/8180/2 "2009-04-15T08:44:42Z")

</div>

I have forwarded your question to the TMVA experts

Rene

---

<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:** [April 15, 2009, 8:48am UTC](https://root-forum.cern.ch/t/tmva-how-to-reduce-log-output/8180/3 "2009-04-15T08:48:26Z")

</div>

Hi Patrick,

You cannot individually switch off the progress bar or warning output. However, you can make TMVA shut up completely by using the “Silent” option when creating the Factory:

TMVA::Factory \*factory = new TMVA::Factory( “TMVAnalysis”, outputFile, “!V:Silent:!Color”);

The “!Color” option also simplifies the progress bar (in the non-Silent mode), you can try.

Cheers,  
Andreas

---

<div class="post-metadata">

**Author:** ![PJussel](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/8baadc/32.png) [@PJussel](https://root-forum.cern.ch/u/PJussel)\
**Post date:** [April 15, 2009, 9:14am UTC](https://root-forum.cern.ch/t/tmva-how-to-reduce-log-output/8180/4 "2009-04-15T09:14:45Z")

</div>

Thanks for the help!

Best wishes  
Patrick
