# Different results when training TMVAMulticlass with same input events

**URL:** <https://root-forum.cern.ch/t/different-results-when-training-tmvamulticlass-with-same-input-events/50946>\
**Category:** TMVA\
**Created:** [July 25, 2022, 10:24am UTC](https://root-forum.cern.ch/t/different-results-when-training-tmvamulticlass-with-same-input-events/50946 "2022-07-25T10:24:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evalient](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/7ea924/32.png) [@evalient](https://root-forum.cern.ch/u/evalient)\
**Post date:** [July 25, 2022, 10:24am UTC](https://root-forum.cern.ch/t/different-results-when-training-tmvamulticlass-with-same-input-events/50946/1 "2022-07-25T10:24:44Z")

</div>

Hi everyone!

I’m training a Multiclass classifier with TMVAMulticlass and obtaining slightly different results when using the same input events but selected from different files (with exactly the same selection applied).  
Any idea about which could be the cause of this? The TestTree and TrainTree are exactly identical in the output files, but the training is different.  
Could there be some random selection/seed applied that is chosen differently in both trainings?  
By the way, I’m using the BDTG method.

Thanks a lot in advance

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [July 25, 2022, 10:46am UTC](https://root-forum.cern.ch/t/different-results-when-training-tmvamulticlass-with-same-input-events/50946/2 "2022-07-25T10:46:56Z")

</div>

Hi @evalient,

@moneta might be able to shed some light here. We would probably also need some code excerpt to tell if there’s something wrong there.

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![evalient](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/7ea924/32.png) [@evalient](https://root-forum.cern.ch/u/evalient)\
**Post date:** [July 26, 2022, 12:06pm UTC](https://root-forum.cern.ch/t/different-results-when-training-tmvamulticlass-with-same-input-events/50946/3 "2022-07-26T12:06:24Z")

</div>

Hi!  
Thanks for the quick reply.  
I’ve attached the code I’m using.  
cernbox.cern.ch/index.php/s/zMiwulRJf0gB2UU  
Hope it’s useful.

Cheers,  
Enrique

---

<div class="post-metadata">

**Author:** ![evalient](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/7ea924/32.png) [@evalient](https://root-forum.cern.ch/u/evalient)\
**Post date:** [August 8, 2022, 9:41am UTC](https://root-forum.cern.ch/t/different-results-when-training-tmvamulticlass-with-same-input-events/50946/4 "2022-08-08T09:41:24Z")

</div>

Hi!

Does anyone have any idea about what is happening here?

Thanks in advance.
