53 std::vector<std::vector<Float_t> > fArrayTrain(nvar);
58 for (UInt_t j = 0; j < ntrains; j++) {
68 for (UInt_t
i = 0;
i < nvar;
i++) {
73 for (UInt_t
i = 0;
i < nvar;
i++) {
84 std::vector<std::vector<Float_t> > fArrayTest(nvar);
86 std::vector<std::vector<Float_t> > fArraySpectators(nvar);
89 for (UInt_t j = 0; j < ntests; j++) {
98 for (UInt_t
i = 0;
i < nvar;
i++) {
101 for (UInt_t
i = 0;
i < nspectators;
i++) {
105 for (UInt_t
i = 0;
i < nvar;
i++) {
108 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