24 #ifndef ROOT_TMVA_CCTreeWrapper 25 #define ROOT_TMVA_CCTreeWrapper 100 virtual void Print( std::ostream& os )
const;
103 virtual void PrintRec ( std::ostream& os )
const;
virtual ~CCTreeNode()
destructor of a CCTreeNode
CCTreeNode * fRoot
pointer to underlying DecisionTree
#define TMVA_VERSION_CODE
virtual void PrintRec(std::ostream &os) const
recursive printout of the node and its daughters
CCTreeNode * GetLeftDaughter()
Double_t fAlphaC
R(T_t) = sum[t' in ~T_t]{ R(t) }.
virtual Node * CreateNode() const
virtual void AddContentToNode(std::stringstream &s) const
void SetResubstitutionEstimate(Double_t R)
void InitTree(CCTreeNode *t)
initialize the node t and all its descendants
Double_t CheckEvent(const TMVA::Event &e, Bool_t useYesNoLeaf=false)
return the decision tree output for an event
CCTreeWrapper(DecisionTree *T, SeparationBase *qualityIndex)
constructor
virtual Node * GetRight() const
virtual Node * GetLeft() const
DecisionTreeNode * fDTNode
G(t), minimum critical point of t and its descendants.
Double_t GetResubstitutionEstimate() const
Double_t fNodeResubstitutionEstimate
number of terminal descendants
virtual void ReadContent(std::stringstream &s)
Class that contains all the data information.
DecisionTree * fDTParent
pointer to the used quality index calculator
CCTreeNode * GetRightDaughter()
Int_t GetNLeafDaughters() const
virtual Node * GetParent() const
std::vector< Event * > EventList
virtual Bool_t GoesLeft(const Event &e) const
Double_t TestTreeQuality(const EventList *validationSample)
return the misclassification rate of a pruned tree for a validation event sample using an EventList ...
SeparationBase * fQualityIndex
void SetNodeResubstitutionEstimate(Double_t R)
Implementation of a Decision Tree.
Double_t fResubstitutionEstimate
R(t) = misclassification rate for node t.
void SetNLeafDaughters(Int_t N)
An interface to calculate the "SeparationGain" for different separation criteria used in various trai...
void SetMinAlphaC(Double_t alpha)
virtual void Print(std::ostream &os) const
printout of the node (can be read in with ReadDataRecord)
virtual Bool_t ReadDataRecord(std::istream &in, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
initialize a node from a data record
virtual Bool_t GoesRight(const Event &e) const
static constexpr double s
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
DecisionTreeNode * GetDTNode() const
void SetAlphaC(Double_t alpha)
Abstract ClassifierFactory template that handles arbitrary types.
Node for the BinarySearch or Decision Trees.
virtual void ReadAttributes(void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
Double_t GetAlphaC() const
~CCTreeWrapper()
destructor
CCTreeNode(DecisionTreeNode *n=NULL)
constructor of the CCTreeNode
Double_t GetMinAlphaC() const
void PruneNode(CCTreeNode *t)
remove the branch rooted at node t
virtual void AddAttributesToNode(void *node) const
Double_t fMinAlphaC
critical point, g(t) = alpha_c(t)
Double_t GetNodeResubstitutionEstimate() const