# TMVA::CrossValidation

**URL:** <https://root-forum.cern.ch/t/tmva-crossvalidation/36877>\
**Category:** TMVA\
**Created:** [November 18, 2019, 2:58pm UTC](https://root-forum.cern.ch/t/tmva-crossvalidation/36877 "2019-11-18T14:58:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathanael](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/48db29/32.png) [@Nathanael](https://root-forum.cern.ch/u/Nathanael)\
**Post date:** [November 18, 2019, 2:58pm UTC](https://root-forum.cern.ch/t/tmva-crossvalidation/36877/1 "2019-11-18T14:58:53Z")

</div>

Dear experts,

I’m trying to run [TMVACrossValidation.C](https://root.cern.ch/doc/master/TMVACrossValidation_8C.html) as ROOT macro with `root -l TMVAClassification.C` but I get the following error message:

```auto
/path/to/TMVACrossValidation.C:127:26: error: no matching constructor for initialization of 'TMVA::CrossValidation'
   TMVA::CrossValidation cv{"TMVACrossValidation", dataloader, outputFile, cvOptions};

/cvmfs/cms.cern.ch/slc6_amd64_gcc700/lcg/root/6.12.07-gnimlf5/include/TMVA/CrossValidation.h:92:16: note: candidate constructor not viable: requires single argument 'loader', but 4 arguments were provided
      explicit CrossValidation(DataLoader *loader);
               
/cvmfs/cms.cern.ch/slc6_amd64_gcc700/lcg/root/6.12.07-gnimlf5/include/TMVA/CrossValidation.h:87:10: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 4 were provided
   class CrossValidation : public Envelope {

...

```

Do I need a different version of ROOT?

* * *

ROOT Version: 6.12/07

* * *

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [November 18, 2019, 3:05pm UTC](https://root-forum.cern.ch/t/tmva-crossvalidation/36877/2 "2019-11-18T15:05:33Z")

</div>

Take your own ROOT 6.12 specific: “[${ROOTSYS}/tutorials/tmva/TMVACrossValidation.C](https://root.cern.ch/doc/v612/TMVACrossValidation_8C.html)”

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 2, 2019, 3:05pm UTC](https://root-forum.cern.ch/t/tmva-crossvalidation/36877/3 "2019-12-02T15:05:41Z")

</div>

Closed on December 2, 2019, 3:05pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
