ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Private Attributes | List of all members
TMVA::CCPruner Class Reference

Definition at line 65 of file CCPruner.h.

Public Types

typedef std::vector< Event * > EventList
 

Public Member Functions

 CCPruner (DecisionTree *t_max, const EventList *validationSample, SeparationBase *qualityIndex=NULL)
 constructor More...
 
 CCPruner (DecisionTree *t_max, const DataSet *validationSample, SeparationBase *qualityIndex=NULL)
 constructor More...
 
 ~CCPruner ()
 
void SetPruneStrength (Float_t alpha=-1.0)
 
void Optimize ()
 determine the pruning sequence More...
 
std::vector< TMVA::DecisionTreeNode * > GetOptimalPruneSequence () const
 return the prune strength (=alpha) corresponding to the prune sequence More...
 
Float_t GetOptimalQualityIndex () const
 
Float_t GetOptimalPruneStrength () const
 

Private Attributes

Float_t fAlpha
 
const EventListfValidationSample
 regularization parameter in CC pruning More...
 
const DataSetfValidationDataSet
 the event sample to select the optimally-pruned tree More...
 
SeparationBasefQualityIndex
 the event sample to select the optimally-pruned tree More...
 
Bool_t fOwnQIndex
 the quality index used to calculate R(t), R(T) = sum[t in ~T]{ R(t) } More...
 
DecisionTreefTree
 flag indicates if fQualityIndex is owned by this More...
 
std::vector< TMVA::DecisionTreeNode * > fPruneSequence
 (pruned) decision tree More...
 
std::vector< Float_tfPruneStrengthList
 map of weakest links (i.e., branches to prune) -> pruning index More...
 
std::vector< Float_tfQualityIndexList
 map of alpha -> pruning index More...
 
Int_t fOptimalK
 map of R(T) -> pruning index More...
 
Bool_t fDebug
 index of the optimal tree in the pruned tree sequence More...
 

#include <TMVA/CCPruner.h>

+ Collaboration diagram for TMVA::CCPruner:

Member Typedef Documentation

typedef std::vector<Event*> TMVA::CCPruner::EventList

Definition at line 67 of file CCPruner.h.

Constructor & Destructor Documentation

CCPruner::CCPruner ( DecisionTree t_max,
const EventList validationSample,
SeparationBase qualityIndex = NULL 
)

constructor

Definition at line 39 of file CCPruner.cxx.

CCPruner::CCPruner ( DecisionTree t_max,
const DataSet validationSample,
SeparationBase qualityIndex = NULL 
)

constructor

Definition at line 62 of file CCPruner.cxx.

CCPruner::~CCPruner ( )

Definition at line 85 of file CCPruner.cxx.

Member Function Documentation

std::vector< DecisionTreeNode * > CCPruner::GetOptimalPruneSequence ( ) const

return the prune strength (=alpha) corresponding to the prune sequence

Definition at line 210 of file CCPruner.cxx.

Referenced by TMVA::MethodDT::PruneTree().

Float_t TMVA::CCPruner::GetOptimalPruneStrength ( ) const
inline

Definition at line 92 of file CCPruner.h.

Referenced by TMVA::MethodDT::PruneTree().

Float_t TMVA::CCPruner::GetOptimalQualityIndex ( ) const
inline

Definition at line 88 of file CCPruner.h.

void CCPruner::Optimize ( )

determine the pruning sequence

Definition at line 94 of file CCPruner.cxx.

Referenced by TMVA::MethodDT::PruneTree().

void TMVA::CCPruner::SetPruneStrength ( Float_t  alpha = -1.0)
inline

Definition at line 113 of file CCPruner.h.

Referenced by TMVA::MethodDT::PruneTree().

Member Data Documentation

Float_t TMVA::CCPruner::fAlpha
private

Definition at line 96 of file CCPruner.h.

Referenced by Optimize(), and SetPruneStrength().

Bool_t TMVA::CCPruner::fDebug
private

index of the optimal tree in the pruned tree sequence

Definition at line 109 of file CCPruner.h.

Referenced by CCPruner(), and Optimize().

Int_t TMVA::CCPruner::fOptimalK
private

map of R(T) -> pruning index

Definition at line 108 of file CCPruner.h.

Referenced by GetOptimalPruneSequence(), GetOptimalPruneStrength(), GetOptimalQualityIndex(), and Optimize().

Bool_t TMVA::CCPruner::fOwnQIndex
private

the quality index used to calculate R(t), R(T) = sum[t in ~T]{ R(t) }

Definition at line 100 of file CCPruner.h.

Referenced by CCPruner(), and ~CCPruner().

std::vector<TMVA::DecisionTreeNode*> TMVA::CCPruner::fPruneSequence
private

(pruned) decision tree

Definition at line 104 of file CCPruner.h.

Referenced by GetOptimalPruneSequence(), and Optimize().

std::vector<Float_t> TMVA::CCPruner::fPruneStrengthList
private

map of weakest links (i.e., branches to prune) -> pruning index

Definition at line 105 of file CCPruner.h.

Referenced by GetOptimalPruneStrength(), and Optimize().

SeparationBase* TMVA::CCPruner::fQualityIndex
private

the event sample to select the optimally-pruned tree

Definition at line 99 of file CCPruner.h.

Referenced by CCPruner(), Optimize(), and ~CCPruner().

std::vector<Float_t> TMVA::CCPruner::fQualityIndexList
private

map of alpha -> pruning index

Definition at line 106 of file CCPruner.h.

Referenced by GetOptimalQualityIndex(), and Optimize().

DecisionTree* TMVA::CCPruner::fTree
private

flag indicates if fQualityIndex is owned by this

Definition at line 102 of file CCPruner.h.

Referenced by CCPruner(), and Optimize().

const DataSet* TMVA::CCPruner::fValidationDataSet
private

the event sample to select the optimally-pruned tree

Definition at line 98 of file CCPruner.h.

Referenced by Optimize().

const EventList* TMVA::CCPruner::fValidationSample
private

regularization parameter in CC pruning

Definition at line 97 of file CCPruner.h.

Referenced by Optimize().


The documentation for this class was generated from the following files: