TMVA::ExpectedErrorPruneTool Class Reference

#include <ExpectedErrorPruneTool.h>

Inheritance diagram for TMVA::ExpectedErrorPruneTool:

TMVA::IPruneTool TMVA::IPruneTool List of all members.

Public Member Functions

 ExpectedErrorPruneTool ()
virtual ~ExpectedErrorPruneTool ()
virtual PruningInfoCalculatePruningInfo (DecisionTree *dt, const IPruneTool::EventSample *testEvents=NULL, Bool_t isAutomatic=kFALSE)
void SetPruneStrengthIncrement (Double_t dalpha)
 ExpectedErrorPruneTool ()
virtual ~ExpectedErrorPruneTool ()
virtual PruningInfoCalculatePruningInfo (DecisionTree *dt, const IPruneTool::EventSample *testEvents=NULL, Bool_t isAutomatic=kFALSE)
void SetPruneStrengthIncrement (Double_t dalpha)

Private Member Functions

void FindListOfNodes (DecisionTreeNode *node)
Double_t GetNodeError (DecisionTreeNode *node) const
Double_t GetSubTreeError (DecisionTreeNode *node) const
Int_t CountNodes (DecisionTreeNode *node, Int_t icount=0)
MsgLoggerLog () const
void FindListOfNodes (DecisionTreeNode *node)
Double_t GetNodeError (DecisionTreeNode *node) const
Double_t GetSubTreeError (DecisionTreeNode *node) const
Int_t CountNodes (DecisionTreeNode *node, Int_t icount=0)
MsgLoggerLog () const

Private Attributes

Double_t fDeltaPruneStrength
Double_t fNodePurityLimit
 the stepsize for optimizing the pruning strength parameter
std::vector< DecisionTreeNode * > fPruneSequence
 the purity limit for labelling a terminal node as signal
MsgLoggerfLogger
 the (optimal) prune sequence
std::vector< DecisionTreeNode * > fPruneSequence
 the purity limit for labelling a terminal node as signal
MsgLoggerfLogger
 the (optimal) prune sequence

Detailed Description

Definition at line 59 of file ExpectedErrorPruneTool.h.


Constructor & Destructor Documentation

TMVA::ExpectedErrorPruneTool::ExpectedErrorPruneTool (  ) 

Definition at line 33 of file ExpectedErrorPruneTool.cxx.

TMVA::ExpectedErrorPruneTool::~ExpectedErrorPruneTool (  )  [virtual]

Definition at line 41 of file ExpectedErrorPruneTool.cxx.

References fLogger.

TMVA::ExpectedErrorPruneTool::ExpectedErrorPruneTool (  ) 

virtual TMVA::ExpectedErrorPruneTool::~ExpectedErrorPruneTool (  )  [virtual]


Member Function Documentation

TMVA::PruningInfo * TMVA::ExpectedErrorPruneTool::CalculatePruningInfo ( DecisionTree dt,
const IPruneTool::EventSample testEvents = NULL,
Bool_t  isAutomatic = kFALSE 
) [virtual]

Implements TMVA::IPruneTool.

Definition at line 48 of file ExpectedErrorPruneTool.cxx.

References Endl, FindListOfNodes(), fNodePurityLimit, fPruneSequence, TMVA::IPruneTool::fPruneStrength, TMVA::DecisionTree::GetNodePurityLimit(), TMVA::DecisionTree::GetRoot(), TMVA::IPruneTool::IsAutomatic(), kFALSE, TMVA::kFATAL, TMVA::kWARNING, Log(), and NULL.

void TMVA::ExpectedErrorPruneTool::SetPruneStrengthIncrement ( Double_t  dalpha  )  [inline]

Definition at line 70 of file ExpectedErrorPruneTool.h.

References fDeltaPruneStrength.

void TMVA::ExpectedErrorPruneTool::FindListOfNodes ( DecisionTreeNode node  )  [private]

Definition at line 142 of file ExpectedErrorPruneTool.cxx.

References fPruneSequence, TMVA::DecisionTreeNode::GetLeft(), GetNodeError(), TMVA::DecisionTreeNode::GetNodeType(), TMVA::DecisionTreeNode::GetRight(), TMVA::DecisionTreeNode::IsTerminal(), and l.

Referenced by CalculatePruningInfo().

Double_t TMVA::ExpectedErrorPruneTool::GetNodeError ( DecisionTreeNode node  )  const [private]

Definition at line 177 of file ExpectedErrorPruneTool.cxx.

References fNodePurityLimit, TMVA::IPruneTool::fPruneStrength, TMVA::DecisionTreeNode::GetNEvents(), TMVA::DecisionTreeNode::GetPurity(), min, and TMath::Sqrt().

Referenced by FindListOfNodes(), and GetSubTreeError().

Double_t TMVA::ExpectedErrorPruneTool::GetSubTreeError ( DecisionTreeNode node  )  const [private]

Definition at line 158 of file ExpectedErrorPruneTool.cxx.

References TMVA::DecisionTreeNode::GetLeft(), TMVA::DecisionTreeNode::GetNEvents(), GetNodeError(), TMVA::DecisionTreeNode::GetNodeType(), TMVA::DecisionTreeNode::GetRight(), TMVA::DecisionTreeNode::IsTerminal(), and l.

Int_t TMVA::ExpectedErrorPruneTool::CountNodes ( DecisionTreeNode node,
Int_t  icount = 0 
) [inline, private]

Definition at line 86 of file ExpectedErrorPruneTool.h.

References TMVA::DecisionTreeNode::GetLeft(), TMVA::DecisionTreeNode::GetRight(), TMVA::DecisionTreeNode::IsTerminal(), l, and NULL.

MsgLogger& TMVA::ExpectedErrorPruneTool::Log (  )  const [inline, private]

Definition at line 83 of file ExpectedErrorPruneTool.h.

References fLogger.

Referenced by CalculatePruningInfo().

virtual PruningInfo* TMVA::ExpectedErrorPruneTool::CalculatePruningInfo ( DecisionTree dt,
const IPruneTool::EventSample testEvents = NULL,
Bool_t  isAutomatic = kFALSE 
) [virtual]

Implements TMVA::IPruneTool.

void TMVA::ExpectedErrorPruneTool::SetPruneStrengthIncrement ( Double_t  dalpha  )  [inline]

Definition at line 70 of file ExpectedErrorPruneTool.h.

References fDeltaPruneStrength.

void TMVA::ExpectedErrorPruneTool::FindListOfNodes ( DecisionTreeNode node  )  [private]

Double_t TMVA::ExpectedErrorPruneTool::GetNodeError ( DecisionTreeNode node  )  const [private]

Double_t TMVA::ExpectedErrorPruneTool::GetSubTreeError ( DecisionTreeNode node  )  const [private]

Int_t TMVA::ExpectedErrorPruneTool::CountNodes ( DecisionTreeNode node,
Int_t  icount = 0 
) [private]

MsgLogger& TMVA::ExpectedErrorPruneTool::Log (  )  const [inline, private]

Definition at line 83 of file ExpectedErrorPruneTool.h.

References fLogger.


Member Data Documentation

Double_t TMVA::ExpectedErrorPruneTool::fDeltaPruneStrength [private]

Definition at line 78 of file ExpectedErrorPruneTool.h.

Referenced by SetPruneStrengthIncrement().

Double_t TMVA::ExpectedErrorPruneTool::fNodePurityLimit [private]

the stepsize for optimizing the pruning strength parameter

Definition at line 79 of file ExpectedErrorPruneTool.h.

Referenced by CalculatePruningInfo(), and GetNodeError().

std::vector<DecisionTreeNode*> TMVA::ExpectedErrorPruneTool::fPruneSequence [private]

the purity limit for labelling a terminal node as signal

Definition at line 80 of file ExpectedErrorPruneTool.h.

Referenced by CalculatePruningInfo(), and FindListOfNodes().

MsgLogger* TMVA::ExpectedErrorPruneTool::fLogger [mutable, private]

the (optimal) prune sequence

Definition at line 82 of file ExpectedErrorPruneTool.h.

Referenced by Log(), and ~ExpectedErrorPruneTool().

std::vector<DecisionTreeNode*> TMVA::ExpectedErrorPruneTool::fPruneSequence [private]

the purity limit for labelling a terminal node as signal

Definition at line 80 of file ExpectedErrorPruneTool.h.

MsgLogger* TMVA::ExpectedErrorPruneTool::fLogger [mutable, private]

the (optimal) prune sequence

Definition at line 82 of file ExpectedErrorPruneTool.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:24 2011 for ROOT_528-00b_version by  doxygen 1.5.1