24 Types::EMVA methodType,
28 TDirectory *theBaseDir , ROOT::
R::TRInterface &_r):
MethodBase(jobName, methodType, methodTitle, dsi, theOption, theBaseDir),
55 std::vector<std::vector<Float_t> > fArrayTrain(nvar);
60 for (
UInt_t j = 0; j < ntrains; j++) {
70 for (
UInt_t i = 0; i < nvar; i++) {
71 fArrayTrain[i].push_back(ev->
GetValue(i));
75 for (
UInt_t i = 0; i < nvar; i++) {
86 std::vector<std::vector<Float_t> > fArrayTest(nvar);
88 std::vector<std::vector<Float_t> > fArraySpectators(nvar);
91 for (
UInt_t j = 0; j < ntests; j++) {
100 for (
UInt_t i = 0; i < nvar; i++) {
101 fArrayTest[i].push_back(ev->
GetValue(i));
103 for (
UInt_t i = 0; i < nspectators; i++) {
107 for (
UInt_t i = 0; i < nvar; i++) {
110 for (
UInt_t i = 0; i < nspectators; i++) {
TVectorT< Element > & ResizeTo(Int_t lwb, Int_t upb)
Resize the vector to [lwb:upb] .
Long64_t GetNTestEvents() const
std::vector< std::string > fFactorTest
ROOT::R::TRDataFrame fDfTest
RMethodBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="", TDirectory *theBaseDir=0, ROOT::R::TRInterface &_r=ROOT::R::TRInterface::Instance())
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
UInt_t GetNVariables() const
const char * Data() const
ROOT::R::TRDataFrame fDfSpectators
std::vector< std::string > fFactorTrain
const Event * GetEvent() const
Describe directory structure in memory.
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
VariableInfo & GetSpectatorInfo(Int_t i)
DataSetInfo & DataInfo() const
ROOT::R::TRDataFrame fDfTrain
UInt_t GetNSpectators(bool all=kTRUE) const
ClassImp(RMethodBase) RMethodBase
std::vector< TString > GetListOfVariables() const
returns list of variables
Long64_t GetNTrainingEvents() const
const TString & GetLabel() const