# Multiclass capability for more methods?

**URL:** <https://root-forum.cern.ch/t/multiclass-capability-for-more-methods/39278>\
**Category:** TMVA\
**Created:** [May 6, 2020, 3:36am UTC](https://root-forum.cern.ch/t/multiclass-capability-for-more-methods/39278 "2020-05-06T03:36:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [August 20, 2020, 5:13pm UTC](https://root-forum.cern.ch/t/multiclass-capability-for-more-methods/39278/4 "2020-08-20T17:13:26Z")

</div>

Hi,

To exactly replicate the _default_ weighting of the multiclass version you can use use `NormMode=None` and manually scale the each input tree by `n_0/n_i` where `n_0` is the number of events in the _first_ class and `n_i` is the number of events in the current class/tree (assuming there is one class per input tree).

```auto
dataloader.AddBackgroundTree(&chain0, n_0/n_0);
dataloader.AddBackgroundTree(&chain1, n_0/n_1);
// ...

```

`EqualNumEvents` normalises the number of _effective_ events in each class to the number of events in the first class.

Cheers,  
Kim

---

_[View the full topic](https://root-forum.cern.ch/t/multiclass-capability-for-more-methods/39278)._
