# Using TMVA with many backgrounds

**URL:** <https://root-forum.cern.ch/t/using-tmva-with-many-backgrounds/10933>\
**Category:** TMVA\
**Created:** [September 9, 2010, 1:40pm UTC](https://root-forum.cern.ch/t/using-tmva-with-many-backgrounds/10933 "2010-09-09T13:40:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zablocki](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zablocki/32/11208_2.png) [@zablocki](https://root-forum.cern.ch/u/zablocki)\
**Post date:** [September 9, 2010, 1:40pm UTC](https://root-forum.cern.ch/t/using-tmva-with-many-backgrounds/10933/1 "2010-09-09T13:40:42Z")

</div>

Hello,

I’m wondering how I should use TMVA with more than one background, especially when cross-sections for them differ significantly (few orders of magnitude). To complicate more big backgrounds are not a problem (I can eliminate them with few simple cuts) but those with small cross-sections are very problematic. Should I use weights to scale their relative proportions to correct values or just leave them as they are. I would greatly appreciate some explanation on this topic.

---

<div class="post-metadata">

**Author:** ![cplager](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@cplager](https://root-forum.cern.ch/u/cplager)\
**Post date:** [September 12, 2010, 12:28am UTC](https://root-forum.cern.ch/t/using-tmva-with-many-backgrounds/10933/2 "2010-09-12T00:28:55Z")

</div>

Hi,

> [@zablocki](#):
>
> I’m wondering how I should use TMVA with more than one background, especially when cross-sections for them differ significantly (few orders of magnitude). To complicate more big backgrounds are not a problem (I can eliminate them with few simple cuts) but those with small cross-sections are very problematic. Should I use weights to scale their relative proportions to correct values or just leave them as they are. I would greatly appreciate some explanation on this topic.

I’m not a NN expert, but…

If you are using a 1 node output tree (or whatever)

- Make the simple event selection you want.
- Make the background sample you are using for training have the same background that you expect.

You can also train a net that has more than one output node (e.g., first node is signal versus background 1, second node is signal versus background 2, etc.).

Hope this helps,  
Cheers,  
Charles
