Hi,
I’ve been using different TMVA models with my data and found really good signal efficiencies and background efficiencies using a MLP neural network using TMVACrossValidation. However the code below errors when reader calls EvaluateMultiClass with the error.
terminate called after throwing an instance of ‘std::out_of_range’ what(): map::at
This is also true using EvaluateMVA. I have previously used this same implementation with a TMVAClassification_BDT model and it works. Can anyone tell me how I need to change my use of reader when using TMVACrossValidation?
reader->BookMVA("TMVACrossValidation_MLP", "dataset/weight/TMVACrossValidation_BDT.weights.xml");
for (Long64_t ievt=0; ievt<data->GetEntries(); ievt++){
var[0] = userVar[0];
var[1] = userVar[1];
var[2] = userVar[2];
var[3] = userVar[3];
data->GetEntry(ievt);
BDT_Response = reader->EvaluateMulticlass("TMVACrossValidation_MLP")[0];
TreeOut->Fill();
}