# MinNodeSize (1 vs 1% in the config file)

**URL:** <https://root-forum.cern.ch/t/minnodesize-1-vs-1-in-the-config-file/52662>\
**Category:** TMVA\
**Tags:** tmva\
**Created:** [December 6, 2022, 2:33pm UTC](https://root-forum.cern.ch/t/minnodesize-1-vs-1-in-the-config-file/52662 "2022-12-06T14:33:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jguhit](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jguhit/32/31734_2.png) [@jguhit](https://root-forum.cern.ch/u/jguhit)\
**Post date:** [December 6, 2022, 2:33pm UTC](https://root-forum.cern.ch/t/minnodesize-1-vs-1-in-the-config-file/52662/1 "2022-12-06T14:33:08Z")

</div>

Hi,

I would like to ask a question about how MinNodSize hyper parameter is treated in the tmva, we create a macro in python that accepts a config file with all of the hyper parameters used for tmva. And I would like to ask since in the TMVA documentation, the unit of MinNodSize is in percentage. If I put e.g 1 in the config file, does the TMVA read this as 1% or I have to specifically specify 1% in the config file? Thanks a lot.

Best,  
Jem

---

<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:** [December 6, 2022, 3:20pm UTC](https://root-forum.cern.ch/t/minnodesize-1-vs-1-in-the-config-file/52662/2 "2022-12-06T15:20:41Z")

</div>

Welcome to the ROOT forum,

May be @moneta can help.

---

<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:** [December 6, 2022, 4:23pm UTC](https://root-forum.cern.ch/t/minnodesize-1-vs-1-in-the-config-file/52662/3 "2022-12-06T16:23:15Z")

</div>

Hi,  
The value needs to be specified as a %, i.e `1%`. Normally you pass the option value as a string and the string should be `1%`. See for example how it is done in the `TMVA_Classification.C` tutorial.  
Now it is true in Python (if using master version of ROOT), you can pass options as command line argument. But in this case you will have to pass the option as a string: `MinNodeSize="1%"`

Best,  
Lorenzo

---

<div class="post-metadata">

**Author:** ![jguhit](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jguhit/32/31734_2.png) [@jguhit](https://root-forum.cern.ch/u/jguhit)\
**Post date:** [December 6, 2022, 4:54pm UTC](https://root-forum.cern.ch/t/minnodesize-1-vs-1-in-the-config-file/52662/4 "2022-12-06T16:54:59Z")

</div>

Hi @moneta

Thanks a lot for this information!

Best,  
Jem
