1#ifndef ROOT_TMVA_CCPruner 
    2#define ROOT_TMVA_CCPruner 
   59   class DecisionTreeNode;
 
   71                const DataSet* validationSample,
 
  111   fAlpha = (alpha > 0 ? alpha : 0.0);
 
A helper class to prune a decision tree using the Cost Complexity method (see Classification and Regr...
 
Float_t GetOptimalQualityIndex() const
 
void SetPruneStrength(Float_t alpha=-1.0)
 
Float_t fAlpha
! regularization parameter in CC pruning
 
std::vector< Float_t > fQualityIndexList
! map of R(T) -> pruning index
 
void Optimize()
determine the pruning sequence
 
Bool_t fDebug
! debug flag
 
Bool_t fOwnQIndex
! flag indicates if fQualityIndex is owned by this
 
std::vector< Event * > EventList
 
std::vector< TMVA::DecisionTreeNode * > fPruneSequence
! map of weakest links (i.e., branches to prune) -> pruning index
 
const EventList * fValidationSample
! the event sample to select the optimally-pruned tree
 
std::vector< TMVA::DecisionTreeNode * > GetOptimalPruneSequence() const
return the prune strength (=alpha) corresponding to the prune sequence
 
Int_t fOptimalK
! index of the optimal tree in the pruned tree sequence
 
const DataSet * fValidationDataSet
! the event sample to select the optimally-pruned tree
 
std::vector< Float_t > fPruneStrengthList
! map of alpha -> pruning index
 
SeparationBase * fQualityIndex
! the quality index used to calculate R(t), R(T) = sum[t in ~T]{ R(t) }
 
DecisionTree * fTree
! (pruned) decision tree
 
Float_t GetOptimalPruneStrength() const
 
Class that contains all the data information.
 
Implementation of a Decision Tree.
 
An interface to calculate the "SeparationGain" for different separation criteria used in various trai...
 
create variable transformations