# After a classifier is done training/testing, how do I apply a selection cut afterwards and save the selected events using the response of the classifier?

**URL:** <https://root-forum.cern.ch/t/after-a-classifier-is-done-training-testing-how-do-i-apply-a-selection-cut-afterwards-and-save-the-selected-events-using-the-response-of-the-classifier/56697>\
**Category:** TMVA\
**Tags:** tmva\
**Created:** [October 12, 2023, 12:10pm UTC](https://root-forum.cern.ch/t/after-a-classifier-is-done-training-testing-how-do-i-apply-a-selection-cut-afterwards-and-save-the-selected-events-using-the-response-of-the-classifier/56697 "2023-10-12T12:10:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abayyari](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/abayyari/32/35034_2.png) [@abayyari](https://root-forum.cern.ch/u/abayyari)\
**Post date:** [October 12, 2023, 12:10pm UTC](https://root-forum.cern.ch/t/after-a-classifier-is-done-training-testing-how-do-i-apply-a-selection-cut-afterwards-and-save-the-selected-events-using-the-response-of-the-classifier/56697/1 "2023-10-12T12:10:40Z")

</div>

I’m currently running a mlp neural network. After the training is finished, I can plot the response to the classifier with the TMVAGUI, which shows the separation strength for the signal/background events in my root file. Now, I want to apply a selection cut, and save these events based on the response plot (for example, the background events from 0.6 to 0.9 in this plot). How do I save these events?

Also, for all my events, there’s an event ID assigned as a separate variable, but I obviously cannot use it as a branch in my Tree when doing the ML training as the event ID numbers are useless for training. Is there a way to check the event IDs for the variables I’ve used for the training after its done? I hope this question makes sense…

 ![Screenshot 2023-10-12 at 2.04.22 AM](https://root-forum.cern.ch/uploads/default/original/3X/5/d/5d71d616650cc7d9bd59e7a556552c40663f4c38.jpeg)

---

<div class="post-metadata">

**Author:** ![mdessole](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mdessole/32/34021_2.png) [@mdessole](https://root-forum.cern.ch/u/mdessole)\
**Post date:** [October 12, 2023, 1:27pm UTC](https://root-forum.cern.ch/t/after-a-classifier-is-done-training-testing-how-do-i-apply-a-selection-cut-afterwards-and-save-the-selected-events-using-the-response-of-the-classifier/56697/2 "2023-10-12T13:27:30Z")

</div>

Hi @abayyari,  
welcome to the ROOT forum!  
I think that @moneta can help you with this.

Cheers,  
Monica
