#include <ExpectedErrorPruneTool.h>
Inheritance diagram for TMVA::ExpectedErrorPruneTool:
Definition at line 59 of file ExpectedErrorPruneTool.h.
TMVA::ExpectedErrorPruneTool::ExpectedErrorPruneTool | ( | ) |
Definition at line 33 of file ExpectedErrorPruneTool.cxx.
TMVA::ExpectedErrorPruneTool::~ExpectedErrorPruneTool | ( | ) | [virtual] |
TMVA::ExpectedErrorPruneTool::ExpectedErrorPruneTool | ( | ) |
virtual TMVA::ExpectedErrorPruneTool::~ExpectedErrorPruneTool | ( | ) | [virtual] |
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] |
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] |
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] |
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] |