30#ifndef ROOT_TMVA_DecisionTreeNode
31#define ROOT_TMVA_DecisionTreeNode
267 virtual void Print( std::ostream& os )
const;
270 virtual void PrintRec( std::ostream& os )
const;
#define ClassDef(name, id)
#define TMVA_VERSION_CODE
std::vector< Float_t > fSampleMax
Float_t fNEvents_unboosted
Float_t fNEvents_unweighted
Float_t fNSigEvents_unweighted
Float_t fNSigEvents_unboosted
DTNodeTrainingInfo(const DTNodeTrainingInfo &n)
Float_t fNBkgEvents_unboosted
std::vector< Float_t > fSampleMin
Float_t fNBkgEvents_unweighted
virtual void AddContentToNode(std::stringstream &s) const
adding attributes to tree node (well, was used in BinarySearchTree, and somehow I guess someone progr...
void SetNEvents_unweighted(Float_t nev)
Float_t GetNBkgEvents_unboosted(void) const
DTNodeTrainingInfo * fTrainInfo
flag to set node as terminal (i.e., without deleting its descendants)
virtual ~DecisionTreeNode()
destructor
Float_t GetNSigEvents_unweighted(void) const
Float_t GetNBkgEvents_unweighted(void) const
void SetNodeType(Int_t t)
Double_t GetSubTreeR() const
Float_t GetSeparationIndex(void) const
void SetSeparationGain(Float_t sep)
void SetNBkgEvents(Float_t b)
void SetCutType(Bool_t t)
Float_t GetNSigEvents_unboosted(void) const
Double_t GetNSValidation() const
void PrintPrune(std::ostream &os) const
printout of the node (can be read in with ReadDataRecord)
Float_t GetSumTarget() const
void IncrementNEvents_unweighted()
void PrintRecPrune(std::ostream &os) const
recursive printout of the node and its daughters
void SetFisherCoeff(Int_t ivar, Double_t coeff)
set fisher coefficients
void SetNSigEvents_unboosted(Float_t s)
void SetSumTarget2(Float_t t2)
void SetAlphaMinSubtree(Double_t g)
static UInt_t fgTmva_Version_Code
void IncrementNBkgEvents(Float_t b)
void SetNEvents_unboosted(Float_t nev)
Float_t GetNSigEvents(void) const
virtual void SetLeft(Node *l)
Double_t GetAlphaMinSubtree() const
void SetTerminal(Bool_t s=kTRUE)
Float_t GetNEvents_unweighted(void) const
void SetResponse(Float_t r)
UInt_t GetNFisherCoeff() const
void SetSampleMax(UInt_t ivar, Float_t xmax)
set the maximum of variable ivar from the training sample that pass/end up in this node
void ClearNodeAndAllDaughters()
clear the nodes (their S/N, Nevents etc), just keep the structure of the tree
virtual Bool_t GoesLeft(const Event &) const
test event if it descends the tree at this node to the left
virtual void ReadContent(std::stringstream &s)
reading attributes from tree node (well, was used in BinarySearchTree, and somehow I guess someone pr...
void SetNBValidation(Double_t b)
Float_t GetRMS(void) const
void IncrementNEvents(Float_t nev)
void SetPurity(void)
return the S/(S+B) (purity) for the node REM: even if nodes with purity 0.01 are very PURE background...
void SetSubTreeR(Double_t r)
void AddToSumTarget2(Float_t t2)
virtual void Print(std::ostream &os) const
print the node
virtual DecisionTreeNode * GetLeft() const
Double_t GetNodeR() const
Float_t GetSumTarget2() const
virtual Bool_t GoesRight(const Event &) const
test event if it descends the tree at this node to the right
DecisionTreeNode()
constructor of an essentially "empty" node floating in space
void SetNFisherCoeff(Int_t nvars)
virtual void AddAttributesToNode(void *node) const
add attribute to xml
Short_t GetSelector() const
virtual void ReadAttributes(void *node, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
void SetNSigEvents(Float_t s)
Float_t GetResponse(void) const
Float_t GetCutValue(void) const
Int_t GetNodeType(void) const
Double_t GetAlpha() const
Int_t GetNTerminal() const
void IncrementNBkgEvents_unweighted()
Bool_t GetCutType(void) const
void ResetValidationData()
temporary stored node values (number of events, etc.) that originate not from the training but from t...
virtual void PrintRec(std::ostream &os) const
recursively print the node and its daughters (--> print the 'tree')
void SetNSigEvents_unweighted(Float_t s)
Float_t GetNEvents(void) const
virtual Node * CreateNode() const
Double_t GetNBValidation() const
void SetAlpha(Double_t alpha)
void SetSeparationIndex(Float_t sep)
virtual void SetRight(Node *r)
virtual Bool_t ReadDataRecord(std::istream &is, UInt_t tmva_Version_Code=TMVA_VERSION_CODE)
Read the data block.
void IncrementNSigEvents_unweighted()
void SetSumTarget(Float_t t)
virtual void SetParent(Node *p)
void SetNodeR(Double_t r)
void SetNBkgEvents_unboosted(Float_t b)
Float_t GetPurity(void) const
Float_t GetNEvents_unboosted(void) const
void IncrementNSigEvents(Float_t s)
Float_t GetSeparationGain(void) const
Float_t GetSampleMax(UInt_t ivar) const
return the maximum of variable ivar from the training sample that pass/end up in this node
void SetCutValue(Float_t c)
Float_t GetNBkgEvents(void) const
Float_t GetSampleMin(UInt_t ivar) const
return the minimum of variable ivar from the training sample that pass/end up in this node
void SetSampleMin(UInt_t ivar, Float_t xmin)
set the minimum of variable ivar from the training sample that pass/end up in this node
void SetSelector(Short_t i)
std::vector< Double_t > fFisherCoeff
virtual DecisionTreeNode * GetParent() const
Double_t GetFisherCoeff(Int_t ivar) const
void SetNBkgEvents_unweighted(Float_t b)
void SetNSValidation(Double_t s)
void AddToSumTarget(Float_t t)
Bool_t IsTerminal() const
void SetNTerminal(Int_t n)
void SetNEvents(Float_t nev)
virtual DecisionTreeNode * GetRight() const
ostringstream derivative to redirect and format output
Node for the BinarySearch or Decision Trees.
static constexpr double s
create variable transformations