# K-S probability is coming always 1 in BDT training and testing?

**URL:** <https://root-forum.cern.ch/t/k-s-probability-is-coming-always-1-in-bdt-training-and-testing/63504>\
**Category:** ROOT\
**Tags:** tmva\
**Created:** [May 6, 2025, 12:54pm UTC](https://root-forum.cern.ch/t/k-s-probability-is-coming-always-1-in-bdt-training-and-testing/63504 "2025-05-06T12:54:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![souvik](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@souvik](https://root-forum.cern.ch/u/souvik)\
**Post date:** [May 6, 2025, 1:35pm UTC](https://root-forum.cern.ch/t/k-s-probability-is-coming-always-1-in-bdt-training-and-testing/63504/4 "2025-05-06T13:35:03Z")

</div>

Thanks for your quick response.  
I followed the thread from here: [here](https://root-forum.cern.ch/t/overtraining-check-with-crossvalidation/35360/4)  
I have modified one line: FoldFileOutput=True in my cvOptions and then compared the training and testing distributions for each fold. I have attached the plots for both the folds.

 ![Screenshot 2025-05-06 213134](https://root-forum.cern.ch/uploads/default/original/3X/f/7/f78572de6ad07dec7c85875ce0796d02205e6f28.png)  
 ![Screenshot 2025-05-06 213207](https://root-forum.cern.ch/uploads/default/original/3X/b/8/b85256e07bc79c40fd2407494d8904283f5a13eb.png)

---

_[View the full topic](https://root-forum.cern.ch/t/k-s-probability-is-coming-always-1-in-bdt-training-and-testing/63504)._
