12 #ifndef ROOT_TMVA_CvSplit 13 #define ROOT_TMVA_CvSplit 27 class CrossValidation;
77 std::vector<std::pair<Int_t, Int_t>>
101 std::vector<std::vector<Event *>> SplitSets(std::vector<TMVA::Event *> &oldSet,
UInt_t numFolds);
102 std::vector<UInt_t> GetEventIndexToFoldMapping(
UInt_t nEntries,
UInt_t numFolds,
UInt_t seed = 100);
std::unique_ptr< CvSplitKFoldsExpr > fSplitExpr
Expression used to split data into folds. Should output values between 0 and numFolds.
Int_t fIdxFormulaParNumFolds
Maps parameter indicies in splitExpr to their spectator index in the datasetinfo. ...
std::vector< Double_t > fParValues
TFormula for splitExpr.
std::vector< std::pair< Int_t, Int_t > > fFormulaParIdxToDsiSpecIdx
virtual void PrepareFoldDataSet(DataSetInfo &dsi, UInt_t foldNumber, Types::ETreeType tt)
Set training and test set vectors of dataset described by dsi.
#define ClassDef(name, id)
std::vector< std::vector< TMVA::Event * > > fTestEvents
TString fSplitExpr
Keeps track of the index of reserved par "NumFolds" in splitExpr.
Class that contains all the data information.
virtual void RecombineKFoldDataSet(DataSetInfo &dsi, Types::ETreeType tt=Types::kTraining)
virtual void MakeKFoldDataSet(DataSetInfo &dsi)=0
std::vector< std::vector< TMVA::Event * > > fTrainEvents
std::map< const TMVA::Event *, UInt_t > fEventToFoldMapping
TFormula fSplitFormula
Expression used to split data into folds. Should output values between 0 and numFolds.
Abstract ClassifierFactory template that handles arbitrary types.
~CvSplitKFolds() override
#define ClassDefOverride(name, id)