32#ifndef ROOT_TMVA_MethodBoost
33#define ROOT_TMVA_MethodBoost
69 const TString& theOption =
"" );
79 void Train(
void )
override;
102 void Init()
override;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
#define ClassDefOverride(name, id)
TH1 is the base class of all histogram classes in ROOT.
Class that contains all the data information.
Class that contains all the data information.
This is the main MVA steering class.
Virtual base Class for all MVA method.
void MonitorBoost(Types::EBoostStage stage, UInt_t methodIdx=0)
fill various monitoring histograms from information of the individual classifiers that have been boos...
virtual void WriteEvaluationHistosToFile(Types::ETreeType treetype) override
writes all MVA evaluation histograms to file
void ResetBoostWeights()
resetting back the boosted weights of the events to 1
MethodBase * CurrentMethod()
Double_t fAdaBoostBeta
ADA boost parameter, default is 1.
TString fBoostedMethodOptions
options
Double_t fBaggedSampleFraction
rel.Size of bagged sample
void DeclareCompatibilityOptions() override
options that are used ONLY for the READER to ensure backward compatibility they are hence without any...
Double_t fBoostWeight
the weight used to boost the next classifier
std::vector< TH1 * > fTestSigMVAHist
void ProcessOptions() override
process user options
void SingleTrain()
initialization
virtual void TestClassification() override
initialization
UInt_t fBoostNum
Number of times the classifier is boosted.
void SetBoostedMethodName(TString methodName)
Bool_t fDetailedMonitoring
produce detailed monitoring histograms (boost-wise)
UInt_t fRandomSeed
seed for random number generator used for bagging
void PrintResults(const TString &, std::vector< Double_t > &, const Double_t) const
DataSetManager * fDataSetManager
DSMTEST.
MethodBoost(const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="")
std::vector< TH1 * > fTestBgdMVAHist
void CreateMVAHistorgrams()
Bool_t fHistoricBoolOption
historic variable, only needed for "CompatibilityOptions"
TTree * fMonitorTree
tree to monitor values during the boosting
void DeclareOptions() override
Double_t AdaBoost(MethodBase *method, Bool_t useYesNoLeaf)
the standard (discrete or real) AdaBoost algorithm
TString fBoostedMethodTitle
title
Bool_t BookMethod(Types::EMVA theMethod, TString methodTitle, TString theOption)
just registering the string from which the boosted classifier will be created
UInt_t CurrentMethodIdx()
std::vector< TH1 * > fTrainSigMVAHist
TString fHistoricOption
historic variable, only needed for "CompatibilityOptions"
void InitHistos()
initialisation routine
void GetHelpMessage() const override
Get help message text.
TString fBoostType
string specifying the boost type
Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t) override
Boost can handle classification with 2 classes and regression with one regression-target.
Double_t GetMvaValue(Double_t *err=nullptr, Double_t *errUpper=nullptr) override
return boosted MVA response
Double_t GetBoostROCIntegral(Bool_t, Types::ETreeType, Bool_t CalcOverlapIntergral=kFALSE)
Calculate the ROC integral of a single classifier or even the whole boosted classifier.
const Ranking * CreateRanking() override
Double_t fROC_training
roc integral of last trained method (on training sample)
TString fBoostedMethodName
details of the boosted classifier
std::vector< TH1 * > fBTrainBgdMVAHist
std::vector< TH1 * > fTrainBgdMVAHist
Double_t SingleBoost(MethodBase *method)
void Train(void) override
Double_t CalcMethodWeight()
std::vector< TH1 * > fBTrainSigMVAHist
Double_t Bagging()
Bagging or Bootstrap boosting, gives new random poisson weight for every event.
void WriteMonitoringHistosToFile(void) const override
write special monitoring histograms to file dummy implementation here --------------—
Double_t fMethodError
estimation of the level error of the classifier
TString fTransformString
min and max values for the classifier response
std::vector< Float_t > * fMVAvalues
mva values for the last trained method
Bool_t fMonitorBoostedMethod
monitor the MVA response of every classifier
virtual ~MethodBoost(void)
destructor
void FindMVACut(MethodBase *method)
find the CUT on the individual MVA that defines an event as correct or misclassified (to be used in t...
Double_t fOverlap_integral
void CheckSetup() override
check may be overridden by derived class (sometimes, eg, fitters are used which can only be implement...
MethodBase * fCurrentMethod
MethodCompositeBase(const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="")
Ranking for variables in method (implementation).
The Reader class serves to use the MVAs in a specific analysis context.
A TTree represents a columnar dataset.
create variable transformations