ROOT
Version v6.32
master
v6.34
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
▼
tmva
doc
►
pymva
►
rmva
▼
sofie
►
inc
▼
src
►
Prototype.cxx
RFunction.cxx
RFunction_Mean.cxx
RFunction_MLP.cxx
RFunction_Sum.cxx
►
RModel.cxx
RModel_Base.cxx
RModel_GNN.cxx
RModel_GraphIndependent.cxx
►
SOFIE_common.cxx
►
sofie_parsers
►
tmva
►
tmvagui
►
tree
►
tutorials
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
RFunction_Mean.cxx
Go to the documentation of this file.
1
#include "
TMVA/RFunction_Mean.hxx
"
2
3
4
namespace
TMVA
{
5
namespace
Experimental {
6
namespace
SOFIE {
7
8
std::string
RFunction_Mean::GenerateModel
() {
9
std::string
modelGenerationString
;
10
modelGenerationString
=
"\n//--------- GNN_Aggregate_Function---"
+
fFuncName
+
"\n"
;
11
modelGenerationString
+=
"std::vector<float> "
+
fFuncName
+
"(const int& num_features, const std::vector<std::vector<float>::iterator>& inputs){\n"
;
12
modelGenerationString
+=
"\tstd::vector<float> result(num_features,0);\n"
;
13
modelGenerationString
+=
"\tfor(auto &it:inputs){\n"
;
14
modelGenerationString
+=
"\t\tstd::transform(result.begin(), result.end(), it, result.begin(), std::plus<float>());\n\t}\n"
;
15
modelGenerationString
+=
"\tfor_each(result.begin(), result.end(), [&result](float &x){ x /= result.size();\n"
;
16
modelGenerationString
+=
"\treturn result;\n}"
;
17
return
modelGenerationString
;
18
}
19
20
}
21
}
22
}
RFunction_Mean.hxx
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TMVA::Experimental::SOFIE::RFunction_Mean::GenerateModel
std::string GenerateModel()
Definition
RFunction_Mean.cxx:8
TMVA::Experimental::SOFIE::RFunction::fFuncName
std::string fFuncName
Definition
RFunction.hxx:19
TMVA
create variable transformations
Definition
GeneticMinimizer.h:22
tmva
sofie
src
RFunction_Mean.cxx
ROOT v6-32 - Reference Guide Generated on Wed Apr 9 2025 05:33:06 (GVA Time) using Doxygen 1.10.0