# How to get different variable rankings for TMVA BDTG

**URL:** <https://root-forum.cern.ch/t/how-to-get-different-variable-rankings-for-tmva-bdtg/63658>\
**Category:** TMVA\
**Tags:** root\
**Created:** [June 2, 2025, 7:32pm UTC](https://root-forum.cern.ch/t/how-to-get-different-variable-rankings-for-tmva-bdtg/63658 "2025-06-02T19:32:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgosart](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tgosart/32/39016_2.png) [@tgosart](https://root-forum.cern.ch/u/tgosart)\
**Post date:** [June 2, 2025, 7:32pm UTC](https://root-forum.cern.ch/t/how-to-get-different-variable-rankings-for-tmva-bdtg/63658/1 "2025-06-02T19:32:15Z")

</div>

I am currently training a BDTG with k-fold cross-validation. After all the folds are trained, I am able to get an input variable ranking that uses ‘Separation’ as the metric:

```auto
                         : Ranking input variables (method unspecific)...
IdTransformation : Ranking result (top variable is best ranked)
                         : --------------------------------------------------
                         : Rank : Variable : Separation
                         : --------------------------------------------------

```

I have seen both in the TMVA Users Guide and in some other Root Forum examples (e.g. `https://root-forum.cern.ch/t/the-rank-of-variables/28339`) that other metrics are available, one being ‘Variable Importance.’ How do we switch between different types of rankings? Is there some option to do this?

Thanks!  
Thomas

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [June 3, 2025, 1:12pm UTC](https://root-forum.cern.ch/t/how-to-get-different-variable-rankings-for-tmva-bdtg/63658/2 "2025-06-03T13:12:27Z")

</div>

Hi Thomas,

Thanks for the post.  
Let me add @moneta in the loop.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![tgosart](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tgosart/32/39016_2.png) [@tgosart](https://root-forum.cern.ch/u/tgosart)\
**Post date:** [June 18, 2025, 4:44pm UTC](https://root-forum.cern.ch/t/how-to-get-different-variable-rankings-for-tmva-bdtg/63658/3 "2025-06-18T16:44:04Z")

</div>

Hello,

@Danilo @moneta any updates on this?

Thanks again!

---

<div class="post-metadata">

**Author:** ![tgosart](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tgosart/32/39016_2.png) [@tgosart](https://root-forum.cern.ch/u/tgosart)\
**Post date:** [February 3, 2026, 7:51pm UTC](https://root-forum.cern.ch/t/how-to-get-different-variable-rankings-for-tmva-bdtg/63658/4 "2026-02-03T19:51:02Z")

</div>

@Danilo @moneta

Do you have any ideas/updates on this? I have still been unable to figure out how to implement the variable importance calculation in a BDTG with k-fold cross-validation.

Thanks!

Thomas
