Home | News | Documentation | Download

TMVA::CrossValidation

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/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


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.