# TMVA SplitMode=Block/Alternate gives 0 testing error

**URL:** <https://root-forum.cern.ch/t/tmva-splitmode-block-alternate-gives-0-testing-error/27982>\
**Category:** TMVA\
**Created:** [February 16, 2018, 10:54pm UTC](https://root-forum.cern.ch/t/tmva-splitmode-block-alternate-gives-0-testing-error/27982 "2018-02-16T22:54:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgrundy](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/e19adc/32.png) [@jgrundy](https://root-forum.cern.ch/u/jgrundy)\
**Post date:** [February 16, 2018, 10:54pm UTC](https://root-forum.cern.ch/t/tmva-splitmode-block-alternate-gives-0-testing-error/27982/1 "2018-02-16T22:54:55Z")

</div>

Hi,

I’m trying to train a Deep Neural Network with TMVA and want to use SplitMode = Block or Alternate but whenever I set this option, every epoch gives me 0 testing error (as seen in the standard output to terminal). Weirdly enough, I do get a non-zero roughly-expected value for training error. If I switch to using SplitMode=Random, the testing error goes back to a non-zero value and everything seems to function fine. How exactly do I get SplitMode=Block or Alternate working?

For reference, my TMVA::DataLoader call is…

dataLoader-\>PrepareTrainingAndTestTree("", 13621, 25727, 13621, 25727, “SplitMode=block”);

Cheers,  
James

---

<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:** [February 19, 2018, 9:40pm UTC](https://root-forum.cern.ch/t/tmva-splitmode-block-alternate-gives-0-testing-error/27982/2 "2018-02-19T21:40:01Z")

</div>

Hi,

Could you try lowering the batch size of your DNN, does that change your reported test score? (Try e.g. 10 just for the sake of it.)

Otherwise, could you post a complete example that reproduces the error?

Cheers,  
Kim
