1 #ifndef ROOT_TMVA_CCPruner 2 #define ROOT_TMVA_CCPruner 48 #ifndef ROOT_TMVA_DecisionTree 56 #ifndef ROOT_TMVA_Event 62 class DecisionTreeNode;
70 const EventList* validationSample,
74 const DataSet* validationSample,
114 fAlpha = (alpha > 0 ? alpha : 0.0);
void Optimize()
determine the pruning sequence
std::vector< Float_t > fQualityIndexList
map of alpha -> pruning index
const DataSet * fValidationDataSet
the event sample to select the optimally-pruned tree
Float_t GetOptimalPruneStrength() const
Float_t GetOptimalQualityIndex() const
Int_t fOptimalK
map of R(T) -> pruning index
DecisionTree * fTree
flag indicates if fQualityIndex is owned by this
Bool_t fDebug
index of the optimal tree in the pruned tree sequence
SeparationBase * fQualityIndex
the event sample to select the optimally-pruned tree
void SetPruneStrength(Float_t alpha=-1.0)
Bool_t fOwnQIndex
the quality index used to calculate R(t), R(T) = sum[t in ~T]{ R(t) }
std::vector< TMVA::DecisionTreeNode * > fPruneSequence
(pruned) decision tree
std::vector< Event * > EventList
const EventList * fValidationSample
regularization parameter in CC pruning
std::vector< TMVA::DecisionTreeNode * > GetOptimalPruneSequence() const
return the prune strength (=alpha) corresponding to the prune sequence
Abstract ClassifierFactory template that handles arbitrary types.
CCPruner(DecisionTree *t_max, const EventList *validationSample, SeparationBase *qualityIndex=NULL)
constructor
std::vector< Float_t > fPruneStrengthList
map of weakest links (i.e., branches to prune) -> pruning index