# Increase number of folds for TMVACrossValidation

**URL:** <https://root-forum.cern.ch/t/increase-number-of-folds-for-tmvacrossvalidation/34951>\
**Category:** TMVA\
**Created:** [July 2, 2019, 8:26am UTC](https://root-forum.cern.ch/t/increase-number-of-folds-for-tmvacrossvalidation/34951 "2019-07-02T08:26:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JungChang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Post date:** [July 2, 2019, 8:26am UTC](https://root-forum.cern.ch/t/increase-number-of-folds-for-tmvacrossvalidation/34951/1 "2019-07-02T08:26:37Z")

</div>

Hi,

I’m checking the TMVACrossValidation with the example code in tutorial/tmva.  
The output results is  
Summary for method BDT  
Fold 0: ROC int: 0.968758, BkgEff@SigEff=0.3: 0.976  
Fold 1: ROC int: 0.965505, BkgEff@SigEff=0.3: 0.975  
Is it possible to have more folds?

Thanks!

Best,  
Jung

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [July 2, 2019, 11:08am UTC](https://root-forum.cern.ch/t/increase-number-of-folds-for-tmvacrossvalidation/34951/2 "2019-07-02T11:08:24Z")

</div>

Hi,

```auto
TMVA::CrossValidation cv{"<jobName>", dataloader, "...:NumFolds=10"};

```

See [here](https://github.com/root-project/root/blob/master/documentation/tmva/UsersGuide/TMVAUsersGuide.pdf) page 30 options documentation.

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![JungChang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Post date:** [July 3, 2019, 1:30am UTC](https://root-forum.cern.ch/t/increase-number-of-folds-for-tmvacrossvalidation/34951/3 "2019-07-03T01:30:04Z")

</div>

Hi Kim!

Thanks for the reply! I got it.

Best,  
Justine

---

<div class="post-metadata">

**Author:** ![JungChang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/3e96dc/32.png) [@JungChang](https://root-forum.cern.ch/u/JungChang)\
**Post date:** [July 3, 2019, 6:44am UTC](https://root-forum.cern.ch/t/increase-number-of-folds-for-tmvacrossvalidation/34951/4 "2019-07-03T06:44:51Z")

</div>

Hi!

Sorry I have another question about cross validation.

May I ask what is the results of “GetEff30Values()” function?  
I did not found description on the user guide.

Thanks.

Best,  
Jung
