27#ifndef ROOT_TMVA_MethodDT
28#define ROOT_TMVA_MethodDT
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Class that contains all the data information.
Implementation of a Decision Tree.
Int_t GetNNodesBeforePruning()
Virtual base Class for all MVA method.
virtual void ReadWeightsFromStream(std::istream &)=0
Analysis of Boosted Decision Trees.
UInt_t fMaxDepth
max depth
Bool_t fAutomatic
use user given prune strength or automatically determined one using a validation sample
Float_t fMinNodeSize
min percentage of training events in node
virtual ~MethodDT(void)
destructor
Bool_t fUsePoissonNvars
fUseNvars is used as a poisson mean, and the actual value of useNvars is at each step drawn form that...
Int_t fUseNvars
the number of variables used in the randomised tree splitting
Double_t TestTreeQuality(DecisionTree *dt)
virtual Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
FDA can handle classification with 2 classes and regression with one regression-target.
SeparationBase * fSepType
the separation used in node splitting
DecisionTree::EPruneMethod fPruneMethod
method used for pruning
Double_t fErrorFraction
ntuple var: misclassification error fraction
static const Int_t fgDebugLevel
debug level determining some printout/control plots etc.
Double_t fDeltaPruneStrength
step size in pruning, is adjusted according to experience of previous trees
Bool_t fUseYesNoLeaf
use sig or bkg classification in leave nodes or sig/bkg
const Ranking * CreateRanking()
void ReadWeightsFromXML(void *wghtnode)
Double_t fNodePurityLimit
purity limit for sig/bkg nodes
TString fSepTypeS
the separation (option string) used in node splitting
TString fMinNodeSizeS
string containing min percentage of training events in node
void GetHelpMessage() const
std::vector< Double_t > fVariableImportance
the relative importance of the different variables
Double_t GetMvaValue(Double_t *err=nullptr, Double_t *errUpper=nullptr)
returns MVA value
void AddWeightsXMLTo(void *parent) const
Double_t PruneTree()
prune the decision tree if requested (good for individual trees that are best grown out,...
void ReadWeightsFromStream(std::istream &istr)
Int_t GetNNodesBeforePruning()
Bool_t fRandomisedTrees
choose a random subset of possible cut variables at each node during training
DecisionTree * fTree
the decision tree
std::vector< Event * > fEventSample
the training events
Double_t GetPruneStrength()
void DeclareOptions()
Define the options (their key words) that can be set in the option string.
Bool_t fPruneBeforeBoost
ancient variable, only needed for "CompatibilityOptions"
void Init(void)
common initialisation with defaults for the DT-Method
void SetMinNodeSize(Double_t sizeInPercent)
void DeclareCompatibilityOptions()
options that are used ONLY for the READER to ensure backward compatibility
Int_t fNCuts
grid used in cut applied in node splitting
Double_t fPruneStrength
a parameter to set the "amount" of pruning..needs to be adjusted
TString fPruneMethodS
prune method option String
Int_t fMinNodeEvents
min number of events in node
void ProcessOptions()
the option string is decoded, for available options see "DeclareOptions"
Ranking for variables in method (implementation)
An interface to calculate the "SeparationGain" for different separation criteria used in various trai...
create variable transformations