Error while running training macro for classification

Hi,
I was trying to run classification macro (attached herewith) but getting errors that are very unexpected. Could anybody check the code if there’s anything wrong or not? Surely, there should be something wrong. Here, I am not calling the dataloader but only the Factory. Do you think that the dataloader has to be called? Here’s the snap of the errors I’m getting.

Training_Z_SP.C (7.0 KB)

Regards,
Saumyen

Maybe @moneta can take a look

Hi,

Yes you should use the DataLoader class to add for example the variables you will need for classification. Please follow the tutorial example code tutorials/tmva/TMVAClassification.C, see
https://root.cern.ch/doc/v614/TMVAClassification_8C.html

Lorenzo

Thanks a lot Lorenzo for the reply.
Yes, I saw that macro and earlier I edited and used. But I was going through the manual of TMVA (even the latest one) and found no reference of Dataloader and things like input variables registration are being done using the Factory. So I was trying to write a simplified macro.
Now it is running properly after calling the Dataloader.
Thanks a lot.

Regards,
Saumyen

Hi Saumyen,
Thank you for the feedback. We will then correct the TMVA manual
best regards
Lorenzo