# How to optimize a function other than S/sqrt(S+B)

**URL:** <https://root-forum.cern.ch/t/how-to-optimize-a-function-other-than-s-sqrt-s-b/48179>\
**Category:** TMVA\
**Created:** [December 25, 2021, 10:40am UTC](https://root-forum.cern.ch/t/how-to-optimize-a-function-other-than-s-sqrt-s-b/48179 "2021-12-25T10:40:14Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [January 5, 2022, 4:04pm UTC](https://root-forum.cern.ch/t/how-to-optimize-a-function-other-than-s-sqrt-s-b/48179/4 "2022-01-05T16:04:31Z")

</div>

Hi,

Sorry for my late reply. I guess you are referring to change the function used in the TMVAGui to draw the efficiency and significance.  
Instead of using the GUI you can call directly the corresponding function, where you can change the function used too optimise.  
For example for the output of TMVAClassification, you can call this function:

```auto
TMVA::mvaeffs("dataset","TMVA.root",1000,1000,true,"RooStats::AsimovSignificance(S,B+0.01)")

```

If I want to use the Asimov mean significance instead of S/sqrt(S+B)

Cheers

Lorenzo

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-optimize-a-function-other-than-s-sqrt-s-b/48179)._
