52 std::vector<std::vector<Float_t> > fArrayTrain(nvar);
57 for (UInt_t j = 0; j < ntrains; j++) {
67 for (UInt_t i = 0; i < nvar; i++) {
68 fArrayTrain[i].push_back(ev->
GetValue(i));
72 for (UInt_t i = 0; i < nvar; i++) {
83 std::vector<std::vector<Float_t> > fArrayTest(nvar);
85 std::vector<std::vector<Float_t> > fArraySpectators(nvar);
88 for (UInt_t j = 0; j < ntests; j++) {
97 for (UInt_t i = 0; i < nvar; i++) {
98 fArrayTest[i].push_back(ev->
GetValue(i));
100 for (UInt_t i = 0; i < nspectators; i++) {
104 for (UInt_t i = 0; i < nvar; i++) {
107 for (UInt_t i = 0; i < nspectators; i++) {
ROOT R was implemented using the R Project library and the modules Rcpp and RInside.
Class that contains all the data information.
UInt_t GetNVariables() const
UInt_t GetNSpectators(bool all=kTRUE) const
std::vector< TString > GetListOfVariables() const
returns list of variables
VariableInfo & GetSpectatorInfo(Int_t i)
Long64_t GetNTestEvents() const
const Event * GetEvent() const
returns event without transformations
Long64_t GetNTrainingEvents() const
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not.
Float_t GetSpectator(UInt_t ivar) const
return spectator content
MethodBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="")
standard constructor
DataSetInfo & DataInfo() const
std::vector< std::string > fFactorTrain
ROOT::R::TRDataFrame fDfTrain
RMethodBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="", ROOT::R::TRInterface &_r=ROOT::R::TRInterface::Instance())
ROOT::R::TRDataFrame fDfTest
std::vector< std::string > fFactorTest
ROOT::R::TRDataFrame fDfSpectators
@ kSignal
Never change this number - it is elsewhere assumed to be zero !
const TString & GetLabel() const
const char * Data() const
create variable transformations