# Variable ranking - Keras NN training

**URL:** <https://root-forum.cern.ch/t/variable-ranking-keras-nn-training/45703>\
**Category:** TMVA\
**Created:** [July 6, 2021, 10:36am UTC](https://root-forum.cern.ch/t/variable-ranking-keras-nn-training/45703 "2021-07-06T10:36:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ktali](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/85e7bf/32.png) [@ktali](https://root-forum.cern.ch/u/ktali)\
**Post date:** [July 6, 2021, 10:36am UTC](https://root-forum.cern.ch/t/variable-ranking-keras-nn-training/45703/1 "2021-07-06T10:36:04Z")

</div>

Dear experts,

In the TMVA guide, section 9.1.4, it is indicated that variable ranking is not supported for Keras, yet in the output logs of the NN training using Keras there is a table of variable ranking, and the numbers actually makes sense.  
Do you know if there was a change since the guide was written and now there is variable ranking? and if so, how does the ranking being calculated? or should I ignore the table?

In case it helps, here is the part of the log I refer to:

```
                     *: Ranking input variables (method unspecific)...*

```

_IdTransformation : Ranking result (top variable is best ranked)_

- 

```
                    : --------------------------------------*

```

- 

```
                    : Rank : Variable : Separation*

```

- 

```
                    : --------------------------------------*

```

- 

```
                    : 1 : x1 : 4.814e-01*

```

- 

```
                    : 2 : x2 : 4.429e-01*

```

- 

```
                    : 3 : x3 : 3.906e-01*

```

- 

```
                    : 4 : x4 : 2.927e-02*

```

- 

```
                    : 5 : x5 : 6.651e-03*

```

- 

```
                    : 6 : x6 : 5.564e-03*

```

- 

```
                    : 7 : x7 : 4.337e-03*

```

- 

```
                    : 8 : x8 : 3.517e-03*

```

- 

```
                    : 9 : x9 : 1.539e-03*

```

- 

```
                    : 10 : x10 : 1.331e-03*

```

- 

```
                    : --------------------------------------*

```

Many thanks in advance 🙂

---

<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:** [July 6, 2021, 12:05pm UTC](https://root-forum.cern.ch/t/variable-ranking-keras-nn-training/45703/2 "2021-07-06T12:05:45Z")

</div>

I think @moneta can help you.

---

<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:** [July 8, 2021, 3:14pm UTC](https://root-forum.cern.ch/t/variable-ranking-keras-nn-training/45703/3 "2021-07-08T15:14:00Z")

</div>

Hi,  
This is not coming from Keras, but it is a generic ranking done in TMVA looking at the input variables.  
I think it uses the Separation between variables, see [ROOT: TMVA::Tools Class Reference](https://root.cern/doc/master/classTMVA_1_1Tools.html#a7e9696b80781f0e0fbc198d4efb316d1).

Lorenzo

---

<div class="post-metadata">

**Author:** ![ktali](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/85e7bf/32.png) [@ktali](https://root-forum.cern.ch/u/ktali)\
**Post date:** [July 8, 2021, 4:25pm UTC](https://root-forum.cern.ch/t/variable-ranking-keras-nn-training/45703/4 "2021-07-08T16:25:02Z")

</div>

Many many many thanks 😊😊😊
