# TMVA GUI doesn't show learning curves

**URL:** <https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972>\
**Category:** TMVA\
**Created:** [February 14, 2020, 12:56pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972 "2020-02-14T12:56:37Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuisCR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@LuisCR](https://root-forum.cern.ch/u/LuisCR)\
**Post date:** [February 14, 2020, 12:56pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/1 "2020-02-14T12:56:37Z")

</div>

I am doing an analysis with MLPs, so I have added three MLPs to a Factory with different number of neurons. Concretely 8 neurons in a hidden layer, 8+4 in two layers and 12+4. Their names are MLP8, MLP8-4 and MLP12-4. When I try to use the option 9b (learning curves) of the GUI, it doesn’t display the curves.  
Is this caused by the fact that there are three neural nets? In fact the option 9a works.

---

<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:** [February 14, 2020, 3:39pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/2 "2020-02-14T15:39:54Z")

</div>

Hi,

Exactly which plot you are referring ? The plot named “Network convergence test (MLP)” ?  
I am having a newer version of TMVA GUI and the numbers I get are different .

If this is the case can you please post a simple example, e…g .based on the data of the macro TMVAClassification.C ?

Thank you

Lorenzo

---

<div class="post-metadata">

**Author:** ![LuisCR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@LuisCR](https://root-forum.cern.ch/u/LuisCR)\
**Post date:** [February 16, 2020, 5:01pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/3 "2020-02-16T17:01:21Z")

</div>

Yes, it is “Network convergence test”. I’m attaching the program.  
[TMVAexampleSimpleANNBDT.C](https://root-forum.cern.ch/uploads/short-url/yNHMqDAsyhiLIpprOWSIBOy4div.C) (2.5 KB)  
Where is that macro TMVAClassification.C? The documentation says it is in tmva/test, but that folder does not exist. My ROOT version is 6.14.04.

---

<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:** [February 16, 2020, 7:53pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/4 "2020-02-16T19:53:08Z")

</div>

Hi,

I will look at your macro, but I need your data files to run it  
`TMVAClassification.C` is in tutorials/tmva, you can see it also here  
[https://root.cern.ch/doc/master/TMVAClassification\_8C.html](https://root.cern.ch/doc/master/TMVAClassification_8C.html)

Lorenzo

---

<div class="post-metadata">

**Author:** ![LuisCR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@LuisCR](https://root-forum.cern.ch/u/LuisCR)\
**Post date:** [February 17, 2020, 4:56pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/5 "2020-02-17T16:56:21Z")

</div>

Hi,  
I’ve run TMVAClassification.C and I get exactly the same error of my macro:

```auto
+++ Could not locate directory 'Method_MLP
Could not locate directory 'Method_MLP' in file TMVA.root

```

Apparently, the problem is that the name of the method is not exactly “MLP” (in this case it was “MLPBNN”, in my macro it was “MLP8-4” and others). However, the option “Network architecture” works with any name.

Luis

---

<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:** [February 17, 2020, 7:11pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/6 "2020-02-17T19:11:54Z")

</div>

Hi,

It looks like the directory `Method_MLP` is not in the output file, `TMVA.root`. I am not getting this error with a newer version of ROOT. Can you try with a newer version 6.18 or the master ?

Lorenzo

---

<div class="post-metadata">

**Author:** ![LuisCR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@LuisCR](https://root-forum.cern.ch/u/LuisCR)\
**Post date:** [February 18, 2020, 4:59pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/7 "2020-02-18T16:59:27Z")

</div>

The problem is that I’m running ROOT in a remote computer that is not mine, so I can’t directly change the version. I’ll contact the owners.  
What is the “master”?

---

<div class="post-metadata">

**Author:** ![LuisCR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@LuisCR](https://root-forum.cern.ch/u/LuisCR)\
**Post date:** [February 20, 2020, 8:15pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/8 "2020-02-20T20:15:03Z")

</div>

Now I’m trying with the version 6.18 and the problem persists. The option “Network convergence tests” only shows learning curves for MLPs with the name “MLP” (not “MLP8” or “MLP12-4”).

---

<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:** [February 21, 2020, 11:03am UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/9 "2020-02-21T11:03:35Z")

</div>

Hi

I am sorry but I have not well understood. Normally by clicking on the GUI you should see all the learning curves produced for all the methods MLP (type = `TMVA::kMLP` ) and each one will have a different name depending of the name the user provides.  
I cannot reproduce this problem with TMVAClassification.C. Can you please maybe attach the macro showing this with the data of TMVACLassification or just send me a link to your data file and I can run the macro you have posted before

Lorenzo

---

<div class="post-metadata">

**Author:** ![LuisCR](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/ec9cab/32.png) [@LuisCR](https://root-forum.cern.ch/u/LuisCR)\
**Post date:** [February 23, 2020, 12:27pm UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/10 "2020-02-23T12:27:50Z")

</div>

Here is a link to the output file:

> **[output16vars3.root](https://drive.google.com/file/d/1yrt06j_8-Rna5h98B_KQYVp97lzDw2TT/view?usp=drive_open)**
>
> Google Drive file.

  
And here are links to the data files:  

> **[ttbar-Madgraph-MLM.root](https://drive.google.com/file/d/11jlJlbEsoQkArb1iOP9ahQQk-h-knVD-/view?usp=drive_open)**
>
> Google Drive file.

  

> **[ttdm-scalar\_100\_1.root](https://drive.google.com/file/d/19RKIM3YXrO_wR5fHtmUGdb8gcKpdEB-0/view?usp=drive_open)**
>
> Google Drive file.

---

<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:** [February 24, 2020, 10:54am UTC](https://root-forum.cern.ch/t/tmva-gui-doesnt-show-learning-curves/37972/11 "2020-02-24T10:54:50Z")

</div>

Hi

Thank you for posting your files. I could run your macro with both 6.18.02 and master and everything seems fine to me. The directory `Method_MLP` is present in the outrput file and it contains three sub-directory,  
`MLP8-4`, `MLP8`, `MLP12-4` for each of the MLP methods that are booked in the macro.

On the other hand your outputfile does not contain the `Method_MLP` directory.  
I have tested also this with 6.16 and I obtain the same as you. So this was due to a bug which has been already fixed.

Lorenzo
