1 #ifndef ROOT_TMVA_CCPruner 2 #define ROOT_TMVA_CCPruner 58 class DecisionTreeNode;
66 const EventList* validationSample,
70 const DataSet* validationSample,
110 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
Class that contains all the data information.
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
Implementation of a Decision Tree.
An interface to calculate the "SeparationGain" for different separation criteria used in various trai...
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
A helper class to prune a decision tree using the Cost Complexity method (see Classification and Regr...