74 for(
Int_t i = 0; i < NumFolds; ++i){
76 TString foldTitle = methodTitle;
100 std::cout <<
"===========================================================" << std::endl;
101 std::cout <<
"Optimisation for " << theMethodName <<
" fold " << j+1 << std::endl;
103 std::map<TString,Double_t>::iterator iter;
105 std::cout << iter->first <<
" " << iter->second << std::endl;
HyperParameterOptimisationResult()
MethodBase * BookMethod(DataLoader *loader, TString theMethodName, TString methodTitle, TString theOption="")
virtual std::map< TString, Double_t > OptimizeTuningParameters(TString fomType="ROCIntegral", TString fitType="FitGA")
call the Optimzier with the set of paremeters and ranges that are meant to be tuned.
A TMultiGraph is a collection of TGraph (or derived) objects.
void MakeKFoldDataSet(UInt_t numberFolds, bool validationSet=false)
const TString & GetMethodName() const
static void SetIsTraining(Bool_t)
when this static function is called, it sets the flag whether events with negative event weight shoul...
void PrepareFoldDataSet(UInt_t foldNumber, Types::ETreeType tt)
std::map< TString, MVector * > fMethodsMap
HyperParameterOptimisation(DataLoader *loader, TString fomType="Separation", TString fitType="Minuit")
HyperParameterOptimisationResult * Optimise(TString theMethodName, TString methodTitle, TString theOption="", int NumFolds=5)
void DeleteResults(const TString &, Types::ETreeType type, Types::EAnalysisType analysistype)
delete the results stored for this particulary Method instance (here appareantly called resultsName i...
~HyperParameterOptimisation()
virtual const char * GetName() const
Returns name of object.
std::vector< std::map< TString, Double_t > > fFoldParameters
Mother of all ROOT objects.
void DeleteAllMethods(void)
delete methods
TMultiGraph * GetROCCurves(Bool_t fLegend=kTRUE)
~HyperParameterOptimisationResult()