# Applying a trained ML model to unlabeled data

**URL:** <https://root-forum.cern.ch/t/applying-a-trained-ml-model-to-unlabeled-data/57804>\
**Category:** TMVA\
**Tags:** tree, tmva, root\
**Created:** [January 11, 2024, 11:15am UTC](https://root-forum.cern.ch/t/applying-a-trained-ml-model-to-unlabeled-data/57804 "2024-01-11T11:15:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlouka](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@mlouka](https://root-forum.cern.ch/u/mlouka)\
**Post date:** [January 11, 2024, 11:15am UTC](https://root-forum.cern.ch/t/applying-a-trained-ml-model-to-unlabeled-data/57804/1 "2024-01-11T11:15:04Z")

</div>

Hello all,

- I’m doing a binary classification between signal (new resonance) and background (SM) using MLP of the TMVA.
- I’m using already weighted TTree events for training the model.
- After doing the training, I apply the trained model read from the .xml file to unlabeled data in a weighted TTree, but I get **un-weighted score** (DNN response ) at the end, _what should I do to get the correct weighted score?_

Thanks in advance  
Magdy

---

<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:** [January 11, 2024, 2:01pm UTC](https://root-forum.cern.ch/t/applying-a-trained-ml-model-to-unlabeled-data/57804/2 "2024-01-11T14:01:53Z")

</div>

Hi,

I am not sure I have understood your problem. When you apply your trained model to your events you will get a DNN response that should be weighted by the weight of that particular event. You don’t need to pass the weight as input to the DNN.

Lorenzo
