20modelFile =
"Higgs_trained_model.h5"
21modelName =
"Higgs_trained_model";
23if not exists(modelFile):
24 raise FileNotFoundError(
"You need to run TMVA_Higgs_Classification.C to generate the Keras trained model")
35print(
"compiling SOFIE model and functor....")
37ROOT.gInterpreter.Declare(
'auto sofie_functor = TMVA::Experimental::SofieFunctor<7,TMVA_SOFIE_'+modelName+
'::Session>(0,"Higgs_trained_model_generated.dat");')
40inputFile =
"http://root.cern/files/Higgs_data.root"
42h1 =
df1.Define(
"DNN_Value",
"sofie_functor(rdfslot_,m_jj, m_jjj, m_lv, m_jlv, m_bb, m_wbb, m_wwbb)").Histo1D((
"h_sig",
"", 100, 0, 1),
"DNN_Value")
45h2 =
df2.Define(
"DNN_Value",
"sofie_functor(rdfslot_,m_jj, m_jjj, m_lv, m_jlv, m_bb, m_wbb, m_wwbb)").Histo1D((
"h_bkg",
"", 100, 0, 1),
"DNN_Value")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...