Hello everyone.
I have a problem to compute my model. The .csv file I’m using has several types of data including Long64_t.
To use the model the “.Compute” function must have float.
How can I convert my long to float or use my long for compute?
RReader model("/home/meursault/Documents/ROOT/Perso/Kaggle/dataset/weights/TMVAClassification_BDT.weights.xml");
auto variables = model.GetVariableNames();
auto rdf2 = ROOT::RDF::MakeCsvDataFrame(
"/home/meursault/Documents/ROOT/Perso/Kaggle/test.csv");
auto rdf=rdf2.Define("Secu", "Age*Pclass");
auto make_prediction = [&](const std::string &treename) {
auto df=rdf;
auto df2 = df.Define("y", Compute<9, float>(model), variables);
return df2;
};
auto df2=make_prediction("test");
df2.Display("y")->Print();
Thank you very much.