# How can I change the default figure of merit?

**URL:** <https://root-forum.cern.ch/t/how-can-i-change-the-default-figure-of-merit/34589>\
**Category:** TMVA\
**Created:** [June 14, 2019, 3:32am UTC](https://root-forum.cern.ch/t/how-can-i-change-the-default-figure-of-merit/34589 "2019-06-14T03:32:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lx\_mantou](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/43a26b/32.png) [@lx\_mantou](https://root-forum.cern.ch/u/lx_mantou)\
**Post date:** [June 14, 2019, 3:32am UTC](https://root-forum.cern.ch/t/how-can-i-change-the-default-figure-of-merit/34589/1 "2019-06-14T03:32:18Z")

</div>

Hi, ROOT experts!  
When I have done the training work and got the figure of ‘Cut efficiencies and Optimized Cut Value’, I just wander how I can change the default figure of merit S/sqrt(S+B) to Punzi figure of merit signal\_efficiency/(3/2 + sqrt(B)). The figure has been attached.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/b/e/be1ba832ce627c7f7bb2633db3f75bd9513bdf25.png)  
Mantou.

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [June 14, 2019, 10:23am UTC](https://root-forum.cern.ch/t/how-can-i-change-the-default-figure-of-merit/34589/2 "2019-06-14T10:23:38Z")

</div>

Hi,

To my knowledge the only FoM supported for this optimisation is statistical significance (S/sqrt(S+B)). If you want to use a custom metric you will have to do this manually (by using the Application interface to get the raw output values and calculating your metric from there).

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![lx\_mantou](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/43a26b/32.png) [@lx\_mantou](https://root-forum.cern.ch/u/lx_mantou)\
**Post date:** [June 14, 2019, 6:50pm UTC](https://root-forum.cern.ch/t/how-can-i-change-the-default-figure-of-merit/34589/3 "2019-06-14T18:50:11Z")

</div>

Thank you, and I have done it manually, actually.😀
