# Stray cout in TMVA::MethodCategory::GetMvaValue?

**URL:** <https://root-forum.cern.ch/t/stray-cout-in-tmva-getmvavalue/50287>\
**Category:** TMVA\
**Created:** [June 6, 2022, 10:00am UTC](https://root-forum.cern.ch/t/stray-cout-in-tmva-getmvavalue/50287 "2022-06-06T10:00:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![valerio.formato](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/valerio.formato/32/12474_2.png) [@valerio.formato](https://root-forum.cern.ch/u/valerio.formato)\
**Post date:** [June 6, 2022, 10:00am UTC](https://root-forum.cern.ch/t/stray-cout-in-tmva-getmvavalue/50287/1 "2022-06-06T10:00:09Z")

</div>

Dear ROOTers,  
after switching my project to use ROOT 6.26/02 and recompiling I now see a huge amount of output on stdout, such as

```auto
...
Event is for method 0 spectator is 0.465203 0 classID 1 value -0.770011 type 0
Event is for method 0 spectator is 0.29381 0 classID 1 value -0.999643 type 0
Event is for method 0 spectator is 0.29381 0 classID 1 value -1 type 0
Event is for method 0 spectator is 0.806349 0 classID 1 value -0.855285 type 0
Event is for method 0 spectator is 0.806349 0 classID 1 value -0.248902 type 0
Event is for method 0 spectator is 0.684604 0 classID 1 value -0.941092 type 0
Event is for method 0 spectator is 0.684604 0 classID 1 value -0.224969 type 0
Event is for method 1 spectator is 2.71182 0 classID 1 value -0.990149 type 0
Event is for method 1 spectator is 2.71182 0 classID 1 value -0.524937 type 0
Event is for method 1 spectator is 2.54111 0 classID 1 value -0.989283 type 0
Event is for method 1 spectator is 2.54111 0 classID 1 value -0.348608 type 0
Event is for method 1 spectator is 2.9538 0 classID 1 value -0.973136 type 0
...

```

Grepping around this seems to be caused by a debug `cout` in `MethodCategory.cxx:633`, which can also be seen again, commented out, in line 702.

Doesn’t seem intentional, is it still present upstream?

* * *

_ROOT Version:_ 6.26/02  
_Platform:_ CentOS7  
_Compiler:_ gcc 9.3.0

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [June 7, 2022, 8:50am UTC](https://root-forum.cern.ch/t/stray-cout-in-tmva-getmvavalue/50287/2 "2022-06-07T08:50:04Z")

</div>

@moneta could you have a look here, please?

---

<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:** [June 7, 2022, 10:35am UTC](https://root-forum.cern.ch/t/stray-cout-in-tmva-getmvavalue/50287/3 "2022-06-07T10:35:29Z")

</div>

Thank you for reporting this problem.  
I have opened a PR, [[TMVA] Fix printout message in MethodCategory::GetMvaValue by lmoneta · Pull Request #10707 · root-project/root · GitHub](https://github.com/root-project/root/pull/10707)  
fixing this problem

Best regards

Lorenzo
