# A question about how to set the classifier range

**URL:** <https://root-forum.cern.ch/t/a-question-about-how-to-set-the-classifier-range/52443>\
**Category:** TMVA\
**Created:** [November 21, 2022, 6:48am UTC](https://root-forum.cern.ch/t/a-question-about-how-to-set-the-classifier-range/52443 "2022-11-21T06:48:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephenChao](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/stephenchao/32/31509_2.png) [@StephenChao](https://root-forum.cern.ch/u/StephenChao)\
**Post date:** [November 21, 2022, 6:48am UTC](https://root-forum.cern.ch/t/a-question-about-how-to-set-the-classifier-range/52443/1 "2022-11-21T06:48:23Z")

</div>

Dear experts,

When I booked the Fisher method and get the output classifier, I will always got the classifier in range[-0.6,0.6]. While in our analysis we typically want a classifier in range [0,1].

Although I know I can do a linear transformation with the output classifier from the range [-0.6,0.6] to range [0,1] manually, by myself, to get the expected range we want, I still wonder if there is any possibility to set this range automatically before we get the classifier? (So we don’t need to do other transformation to get the range of out classifier we expected) I failed to find the solution by reading the documentation. 😭

Best regards.

 ![截屏2022-11-21 14.37.31](https://root-forum.cern.ch/uploads/default/original/3X/a/8/a879b22cb72bb8f4912e6d2573fc5a6a154d1f6b.png)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 21, 2022, 8:02am UTC](https://root-forum.cern.ch/t/a-question-about-how-to-set-the-classifier-range/52443/2 "2022-11-21T08:02:02Z")

</div>

I guess @moneta can help with this

---

<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:** [November 22, 2022, 3:32pm UTC](https://root-forum.cern.ch/t/a-question-about-how-to-set-the-classifier-range/52443/3 "2022-11-22T15:32:20Z")

</div>

Hi,  
If you want the classifier to return an output in the range [0,1] , i.e. representing a probability, you can use the classifier probability distributions which gives the probability for the event to be of signal type or the rarity which is the cumulative integral of that probability. Both are in the range between [0,1].  
See page 29 of the [TMVA Users Guide](https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf)

Best regards

Lorenzo

---

<div class="post-metadata">

**Author:** ![StephenChao](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/stephenchao/32/31509_2.png) [@StephenChao](https://root-forum.cern.ch/u/StephenChao)\
**Post date:** [December 9, 2022, 3:57am UTC](https://root-forum.cern.ch/t/a-question-about-how-to-set-the-classifier-range/52443/4 "2022-12-09T03:57:04Z")

</div>

Thanks @moneta , sorry for the delaying response, this reply answered my question perfectly!
