# TMVA cross validation over training check and K-S test

**URL:** <https://root-forum.cern.ch/t/tmva-cross-validation-over-training-check-and-k-s-test/52087>\
**Category:** TMVA\
**Created:** [October 25, 2022, 8:34pm UTC](https://root-forum.cern.ch/t/tmva-cross-validation-over-training-check-and-k-s-test/52087 "2022-10-25T20:34:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Yao\_Yao](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/yao_yao/32/23839_2.png) [@Yao\_Yao](https://root-forum.cern.ch/u/Yao_Yao)\
**Post date:** [November 1, 2022, 5:11pm UTC](https://root-forum.cern.ch/t/tmva-cross-validation-over-training-check-and-k-s-test/52087/3 "2022-11-01T17:11:58Z")

</div>

Hi,

I think I find a solution here. So far I split the dataset into half training and half test in the dataloader, and the CV is only trained, tested and evaluated on the training part of the dataset. I use the other half to plot the test result. I am currently plotting it with my own plotting script. Please let me know if you have any comments.

Thank you,  
Yao

> [@Overtraining check with CrossValidation](https://root-forum.cern.ch/t/overtraining-check-with-crossvalidation/35360):
>
> Dear MVA experts, Now I’m tring to use CrossValidation for some classification work. However, from the output file of the tutorial code here: [https://root.cern/doc/master/TMVACrossValidation\_8C.html](https://root.cern/doc/master/TMVACrossValidation_8C.html), I found that the information in the output TrainTree and TestTree are completely the same. When I’m looking at the overtraining check plot from TMVAGui, the training part and testing part just overlap with each other. I’m wondering how to deal with the issue if I want to CrossValidation class. Ma…

---

_[View the full topic](https://root-forum.cern.ch/t/tmva-cross-validation-over-training-check-and-k-s-test/52087)._
