Dear experts,

I’m trying to run TMVACrossValidation.C as ROOT macro with root -l TMVAClassification.C but I get the following error message:

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

/cvmfs/ note: candidate constructor not viable: requires single argument 'loader', but 4 arguments were provided
      explicit CrossValidation(DataLoader *loader);
/cvmfs/ 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

Take your own ROOT 6.12 specific: “${ROOTSYS}/tutorials/tmva/TMVACrossValidation.C

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