23void TMVA_SOFIE_RSofieReader(){
31 std::vector<float>
input = {0.1,0.2,0.3,0.4,0.5,0.6,0.7};
37 std::cout <<
"Event prediction = " <<
output[0] << std::endl;
41 std::string inputFileName =
"Higgs_data.root";
42 std::string inputFile = std::string(
gROOT->GetTutorialDir()) +
"/tmva/data/" + inputFileName;
48 {
"m_jj",
"m_jjj",
"m_lv",
"m_jlv",
"m_bb",
"m_wbb",
"m_wwbb"})
49 .
Define(
"y",
"DNN_Values[0]")
50 .Histo1D({
"h_sig",
"", 100, 0, 1},
"y");
54 {
"m_jj",
"m_jjj",
"m_lv",
"m_jlv",
"m_bb",
"m_wbb",
"m_wwbb"})
55 .
Define(
"y",
"DNN_Values[0]")
56 .Histo1D({
"h_bkg",
"", 100, 0, 1},
"y");
65 h1->DrawClone(
"SAME");
RInterface< Proxied, DS_t > Define(std::string_view name, F expression, const ColumnNames_t &columns={})
Define a new column.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
R__EXTERN TStyle * gStyle
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
TMVA::RSofieReader class for reading external Machine Learning models in ONNX files,...
auto Compute(F &&f) -> Internal::ComputeHelper< std::make_index_sequence< N >, T, F >
Helper to pass TMVA model to RDataFrame.Define nodes.