Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9833

TMVA crashes adding single event w/o prior var def

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Medium
    • Resolution: Unresolved
    • 6.15/01
    • None
    • TMVA
    • None
    • ROOT 6.15
      macos 10.12.6

    Description

      Running the following code crashes root/tmva.

      {
          std::vector<double> evData = {1, 2};
          TMVA::DataLoader dl;
          dl.AddEvent("class1", TMVA::Types::kTraining, evData, 1.0);
      }
      

      TMVA should print an error message stating that it's missing variable definitions and return unsuccessfully. Preferably it should print some information about what data was fed into it as well, and provide a possible remedy for the user e.g. "Use `DataLoader::AddVariable` to define variables before adding events."

      Attachments

        Activity

          People

            moneta Lorenzo Moneta
            kialbert Kim Albertsson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: