28 #ifndef ROOT_TMVA_DataLoader 29 #define ROOT_TMVA_DataLoader 39 #ifndef ROOT_TMVA_Factory 42 #ifndef ROOT_TMVA_Types 45 #ifndef ROOT_TMVA_DataSet 59 class DataInputHandler;
62 class VariableTransformBase;
63 class VarTransformHandler;
122 AddTree( tree,
"Regression", weight,
"", treetype );
130 const TCut& cut =
"",
145 AddTarget( expression, title, unit, min, max );
168 const TString& otherOpt=
"SplitMode=Random:!V" );
174 std::vector<std::vector<TMVA::Event*>>
SplitSets(std::vector<TMVA::Event*>& oldSet,
int seedNum,
int numFolds);
void AddBackgroundTree(TTree *background, Double_t weight=1.0, Types::ETreeType treetype=Types::kMaxTreeType)
DataSetManager * fDataSetManager
void AddTrainingEvent(const TString &className, const std::vector< Double_t > &event, Double_t weight)
std::vector< TMVA::VariableTransformBase * > fDefaultTrfs
DataLoader(TString thedlName="default")
void AddRegressionTarget(const TString &expression, const TString &title="", const TString &unit="", Double_t min=0, Double_t max=0)
std::vector< std::vector< TMVA::Event * > > fTrainBkgEvents
DataSetInfo & GetDataSetInfo()
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
TTree * CreateEventAssignTrees(const TString &name)
DataSetInfo & DefaultDataSetInfo()
DataLoader * VarTransform(TString trafoDefinition)
Transforms the variables and return a new DataLoader with the transformed variables.
void MakeKFoldDataSet(UInt_t numberFolds, bool validationSet=false)
void SetBackgroundTree(TTree *background, Double_t weight=1.0)
DataInputHandler * fDataInputHandler
Types::EAnalysisType fAnalysisType
void AddBackgroundTestEvent(const std::vector< Double_t > &event, Double_t weight=1.0)
TH2 * GetCorrelationMatrix(const TString &className)
std::vector< std::vector< TMVA::Event * > > fTestBkgEvents
void AddVariable(const TString &expression, const TString &title, const TString &unit, char type='F', Double_t min=0, Double_t max=0)
#define ClassDef(name, id)
void AddTestEvent(const TString &className, const std::vector< Double_t > &event, Double_t weight)
void SetInputTrees(const TString &signalFileName, const TString &backgroundFileName, Double_t signalWeight=1.0, Double_t backgroundWeight=1.0)
void SetTree(TTree *tree, const TString &className, Double_t weight)
void PrepareFoldDataSet(UInt_t foldNumber, Types::ETreeType tt)
Base class for all machine learning algorithms.
void SetInputVariables(std::vector< TString > *theVariables)
DataSetInfo & AddDataSet(DataSetInfo &)
void AddCut(const TString &cut, const TString &className="")
A specialized string object used for TTree selections.
void SetInputTreesFromEventAssignTrees()
DataInputHandler & DataInput()
Service class for 2-Dim histogram classes.
std::vector< TTree * > fTestAssignTree
Bool_t UserAssignEvents(UInt_t clIndex)
std::vector< Float_t > fATreeEvent
void AddRegressionTree(TTree *tree, Double_t weight=1.0, Types::ETreeType treetype=Types::kMaxTreeType)
std::vector< std::vector< TMVA::Event * > > fTestSigEvents
DataLoader * MakeCopy(TString name)
const DataSetInfo & GetDefaultDataSetInfo()
void AddTree(TTree *tree, const TString &className, Double_t weight=1.0, const TCut &cut="", Types::ETreeType tt=Types::kMaxTreeType)
void PrepareTrainingAndTestTree(const TCut &cut, const TString &splitOpt)
DataAssignType fDataAssignType
void AddEvent(const TString &className, Types::ETreeType tt, const std::vector< Double_t > &event, Double_t weight)
Describe directory structure in memory.
void SetBackgroundWeightExpression(const TString &variable)
void AddTarget(const TString &expression, const TString &title="", const TString &unit="", Double_t min=0, Double_t max=0)
void SetWeightExpression(const TString &variable, const TString &className="")
void AddBackgroundTrainingEvent(const std::vector< Double_t > &event, Double_t weight=1.0)
void SetSignalWeightExpression(const TString &variable)
std::vector< std::vector< TMVA::Event * > > fTrainSigEvents
Abstract ClassifierFactory template that handles arbitrary types.
std::vector< TTree * > fTrainAssignTree
void AddSignalTestEvent(const std::vector< Double_t > &event, Double_t weight=1.0)
std::vector< std::vector< TMVA::Event * > > fValidBkgEvents
void AddSignalTrainingEvent(const std::vector< Double_t > &event, Double_t weight=1.0)
friend void DataLoaderCopy(TMVA::DataLoader *des, TMVA::DataLoader *src)
void SetSignalTree(TTree *signal, Double_t weight=1.0)
A TTree object has a header with a name and a title.
std::vector< std::vector< TMVA::Event * > > SplitSets(std::vector< TMVA::Event *> &oldSet, int seedNum, int numFolds)
std::vector< std::vector< TMVA::Event * > > fValidSigEvents
void AddSignalTree(TTree *signal, Double_t weight=1.0, Types::ETreeType treetype=Types::kMaxTreeType)
void SetCut(const TString &cut, const TString &className="")
void AddSpectator(const TString &expression, const TString &title="", const TString &unit="", Double_t min=0, Double_t max=0)