# Custom separation type in TMVA

**URL:** <https://root-forum.cern.ch/t/custom-separation-type-in-tmva/48768>\
**Category:** TMVA\
**Tags:** tmva\
**Created:** [February 11, 2022, 2:44pm UTC](https://root-forum.cern.ch/t/custom-separation-type-in-tmva/48768 "2022-02-11T14:44:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zubov\_dmitriy\_97](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zubov_dmitriy_97/32/21538_2.png) [@zubov\_dmitriy\_97](https://root-forum.cern.ch/u/zubov_dmitriy_97)\
**Post date:** [February 11, 2022, 2:44pm UTC](https://root-forum.cern.ch/t/custom-separation-type-in-tmva/48768/1 "2022-02-11T14:44:32Z")

</div>

Dear experts,

I use the BDTG method for the classification task. And I wonder if there is a way to switch SeparationType parameter to a user function. For example I would replace the Gini Index or the stat significance by the signal significance of Asimov.

Thanks,  
Dmitriy

---

<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:** [February 13, 2022, 10:58am UTC](https://root-forum.cern.ch/t/custom-separation-type-in-tmva/48768/2 "2022-02-13T10:58:12Z")

</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:** [February 14, 2022, 9:28am UTC](https://root-forum.cern.ch/t/custom-separation-type-in-tmva/48768/3 "2022-02-14T09:28:31Z")

</div>

Hi,

You can change the separation type, it is a Booking option to give in the `TMVA::Factory::Book` method with name `SeparationType` (the default is `GiniIndex`). See table 26 (page 132) of the  
[TMVA Users Guide](https://github.com/root-project/root/blob/master/documentation/tmva/UsersGuide/TMVAUsersGuide.pdf).

The Asimov stat significance is not part of the option. It should be possible to add it, one would need to implement another [`TMVA::SeparationBase`](https://root.cern.ch/doc/master/classTMVA_1_1SeparationBase.html#af6c7b0e7311e441a75fa0ffbac682dce) class, similar to [`TMVA::SdivSqrtSplusB`](https://root.cern.ch/doc/master/classTMVA_1_1SdivSqrtSplusB.html)

Cheers

Lorenzo

---

<div class="post-metadata">

**Author:** ![zubov\_dmitriy\_97](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zubov_dmitriy_97/32/21538_2.png) [@zubov\_dmitriy\_97](https://root-forum.cern.ch/u/zubov_dmitriy_97)\
**Post date:** [February 15, 2022, 7:54am UTC](https://root-forum.cern.ch/t/custom-separation-type-in-tmva/48768/4 "2022-02-15T07:54:03Z")

</div>

Thank you for your reply!
