using namespace TMVA::Experimental; const char * modelFile = "Higgs_trained_model.h5"; if (gSystem->AccessPathName(modelFile)) { Error("TMVA_SOFIE_RDataFrame","You need to run TMVA_Higgs_Classification.C to generate the Keras trained model"); return; } SOFIE::RModel model = SOFIE::PyKeras::Parse(modelFile); TString modelHeaderFile = modelFile; modelHeaderFile.ReplaceAll(".h5",".hxx"); model.Generate(); model.OutputGenerated(std::string(modelHeaderFile)); std::cout << "include is in " << gROOT->GetIncludeDir() << std::endl;