# TMVA Multiclass probability

**URL:** <https://root-forum.cern.ch/t/tmva-multiclass-probability/40029>\
**Category:** TMVA\
**Tags:** tmva\
**Created:** [June 22, 2020, 2:23pm UTC](https://root-forum.cern.ch/t/tmva-multiclass-probability/40029 "2020-06-22T14:23:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lara.kamal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@lara.kamal](https://root-forum.cern.ch/u/lara.kamal)\
**Post date:** [June 22, 2020, 2:23pm UTC](https://root-forum.cern.ch/t/tmva-multiclass-probability/40029/1 "2020-06-22T14:23:23Z")

</div>

Hello everyone!  
I am currently working on a multi-class classification problem using BDTG (Boosted Decision Tree Gradient). I would want to add the probability of a classifier per event. For example, I would want my classifier to say: “There is a 80% probability that this event belongs to class B”. How do I do that?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [August 13, 2020, 8:07am UTC](https://root-forum.cern.ch/t/tmva-multiclass-probability/40029/2 "2020-08-13T08:07:42Z")

</div>

Hi @lara.kamal,  
and welcome to the ROOT forum!  
I am afraid this post slipped through the cracks! @moneta, our TMVA expert, can probably help.

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [August 13, 2020, 8:16am UTC](https://root-forum.cern.ch/t/tmva-multiclass-probability/40029/3 "2020-08-13T08:16:43Z")

</div>

Hi Lara,

You would determine the classifier performance on a given sample. That tells you its efficiency and mis-classification rate for events similar to that sample.

Cheers, Axel.
