TMVA::MethodDT Class Reference

#include <MethodDT.h>

Inheritance diagram for TMVA::MethodDT:

TMVA::MethodBase TMVA::MethodBase TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod List of all members.

Public Member Functions

 MethodDT (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="", TDirectory *theTargetDir=0)
 MethodDT (DataSetInfo &dsi, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodDT (void)
virtual Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Train (void)
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromStream (istream &istr)
void ReadWeightsFromXML (void *wghtnode)
Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
void DeclareOptions ()
void ProcessOptions ()
void GetHelpMessage () const
const RankingCreateRanking ()
Double_t PruneTree (const Int_t methodIndex)
Double_t TestTreeQuality (DecisionTree *dt)
Double_t GetPruneStrength ()
Bool_t MonitorBoost (MethodBoost *booster)
 MethodDT (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="", TDirectory *theTargetDir=0)
 MethodDT (DataSetInfo &dsi, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodDT (void)
virtual Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Train (void)
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromStream (istream &istr)
void ReadWeightsFromXML (void *wghtnode)
Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
void DeclareOptions ()
void ProcessOptions ()
void GetHelpMessage () const
const RankingCreateRanking ()
Double_t PruneTree (const Int_t methodIndex)
Double_t TestTreeQuality (DecisionTree *dt)
Double_t GetPruneStrength ()
Bool_t MonitorBoost (MethodBoost *booster)

Private Member Functions

void Init (void)
void Init (void)

Private Attributes

std::vector< Event * > fEventSample
DecisionTreefTree
SeparationBasefSepType
TString fSepTypeS
Int_t fNodeMinEvents
Int_t fNCuts
Bool_t fUseYesNoLeaf
Double_t fNodePurityLimit
UInt_t fNNodesMax
UInt_t fMaxDepth
Double_t fErrorFraction
Double_t fPruneStrength
DecisionTree::EPruneMethod fPruneMethod
TString fPruneMethodS
Bool_t fAutomatic
Bool_t fRandomisedTrees
Int_t fUseNvars
Bool_t fPruneBeforeBoost
std::vector< Double_tfVariableImportance
Double_t fDeltaPruneStrength
std::vector< Event * > fEventSample
DecisionTreefTree
SeparationBasefSepType
std::vector< Double_tfVariableImportance

Static Private Attributes

static const Int_t fgDebugLevel = 0

Detailed Description

Definition at line 61 of file MethodDT.h.


Constructor & Destructor Documentation

TMVA::MethodDT::MethodDT ( const TString jobName,
const TString methodTitle,
DataSetInfo theData,
const TString theOption = "",
TDirectory theTargetDir = 0 
)

TMVA::MethodDT::MethodDT ( DataSetInfo dsi,
const TString theWeightFile,
TDirectory theTargetDir = NULL 
)

Definition at line 144 of file MethodDT.cxx.

TMVA::MethodDT::~MethodDT ( void   )  [virtual]

Definition at line 304 of file MethodDT.cxx.

References fTree.

TMVA::MethodDT::MethodDT ( const TString jobName,
const TString methodTitle,
DataSetInfo theData,
const TString theOption = "",
TDirectory theTargetDir = 0 
)

TMVA::MethodDT::MethodDT ( DataSetInfo dsi,
const TString theWeightFile,
TDirectory theTargetDir = NULL 
)

virtual TMVA::MethodDT::~MethodDT ( void   )  [virtual]


Member Function Documentation

Bool_t TMVA::MethodDT::HasAnalysisType ( Types::EAnalysisType  type,
UInt_t  numberClasses,
UInt_t  numberTargets 
) [virtual]

Implements TMVA::IMethod.

Definition at line 168 of file MethodDT.cxx.

References TMVA::Types::kClassification, kFALSE, and kTRUE.

void TMVA::MethodDT::Train ( void   )  [virtual]

Implements TMVA::MethodBase.

Definition at line 311 of file MethodDT.cxx.

References TMVA::DecisionTree::BuildTree(), Endl, TMVA::DecisionTreeNode::fgIsTraining, fMaxDepth, fNCuts, fNNodesMax, fNodeMinEvents, fRandomisedTrees, fSepType, fTree, fUseNvars, TMVA::MethodBase::GetAnalysisType(), TMVA::MethodBase::GetEventCollection(), TMVA::Types::kTraining, TMVA::kWARNING, TMVA::Configurable::Log(), and TMVA::DecisionTree::SetAnalysisType().

void TMVA::MethodDT::AddWeightsXMLTo ( void *  parent  )  const [virtual]

Implements TMVA::MethodBase.

Definition at line 506 of file MethodDT.cxx.

References TMVA::BinaryTree::AddXMLTo(), and fTree.

void TMVA::MethodDT::ReadWeightsFromStream ( istream &  istr  ) 

Definition at line 522 of file MethodDT.cxx.

References fTree, and TMVA::BinaryTree::Read().

void TMVA::MethodDT::ReadWeightsFromXML ( void *  wghtnode  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 513 of file MethodDT.cxx.

References fTree, TMVA::MethodBase::GetTrainingTMVAVersionCode(), and TMVA::BinaryTree::ReadXML().

Double_t TMVA::MethodDT::GetMvaValue ( Double_t err = 0,
Double_t errUpper = 0 
) [virtual]

Implements TMVA::MethodBase.

Definition at line 530 of file MethodDT.cxx.

References TMVA::DecisionTree::CheckEvent(), fTree, fUseYesNoLeaf, TMVA::MethodBase::GetEvent(), and TMVA::MethodBase::NoErrorCalc().

void TMVA::MethodDT::DeclareOptions (  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 177 of file MethodDT.cxx.

References TMVA::Configurable::AddPreDefVal(), TMVA::Configurable::DeclareOptionRef(), TMVA::MethodBase::DoRegression(), fMaxDepth, fNCuts, fNNodesMax, fNodeMinEvents, fNodePurityLimit, fPruneBeforeBoost, fPruneMethodS, fPruneStrength, fRandomisedTrees, fSepTypeS, fUseNvars, fUseYesNoLeaf, kFALSE, and kTRUE.

void TMVA::MethodDT::ProcessOptions (  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 230 of file MethodDT.cxx.

References Endl, fAutomatic, fNodeMinEvents, fPruneMethod, fPruneMethodS, fPruneStrength, fRandomisedTrees, fSepType, fSepTypeS, TMVA::Configurable::GetOptions(), TMVA::DecisionTree::kCostComplexityPruning, TMVA::DecisionTree::kExpectedErrorPruning, kFALSE, TMVA::kFATAL, TMVA::kINFO, TMVA::DecisionTree::kNoPruning, kTRUE, TMVA::Configurable::Log(), and TString::ToLower().

void TMVA::MethodDT::GetHelpMessage (  )  const [virtual]

Implements TMVA::IMethod.

Definition at line 541 of file MethodDT.cxx.

const TMVA::Ranking * TMVA::MethodDT::CreateRanking (  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 546 of file MethodDT.cxx.

Double_t TMVA::MethodDT::PruneTree ( const Int_t  methodIndex  ) 

Definition at line 394 of file MethodDT.cxx.

References fAutomatic, fPruneMethod, fPruneStrength, fSepType, fTree, TMVA::CCPruner::GetOptimalPruneSequence(), TMVA::CCPruner::GetOptimalPruneStrength(), i, TMVA::DecisionTree::kCostComplexityPruning, TMVA::CCPruner::Optimize(), TMVA::DecisionTree::PruneNode(), TMVA::DecisionTree::PruneTree(), and TMVA::DecisionTree::SetPruneStrength().

Referenced by MonitorBoost().

Double_t TMVA::MethodDT::TestTreeQuality ( DecisionTree dt  ) 

Definition at line 490 of file MethodDT.cxx.

References TMVA::DecisionTree::CheckEvent(), TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), TMVA::DataSet::GetEvent(), TMVA::DataSet::GetNEvents(), TMVA::DecisionTree::GetNodePurityLimit(), TMVA::Event::GetWeight(), TMVA::DataSetInfo::IsSignal(), TMVA::Types::kTraining, TMVA::Types::kValidation, Long64_t, and TMVA::DataSet::SetCurrentType().

Double_t TMVA::MethodDT::GetPruneStrength (  )  [inline]

Definition at line 104 of file MethodDT.h.

References fPruneStrength.

Referenced by MonitorBoost().

Bool_t TMVA::MethodDT::MonitorBoost ( MethodBoost booster  )  [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 326 of file MethodDT.cxx.

References TMVA::MethodBoost::AddMonitoringHist(), TMVA::MethodBase::Data(), TMVA::DataSet::DivideTrainingSet(), Endl, fAutomatic, fPruneBeforeBoost, fPruneMethod, fPruneStrength, fTree, TMVA::MethodBoost::GetBoostNum(), TMVA::MethodBoost::GetBoostStage(), TH1::GetMean(), TMVA::MethodCompositeBase::GetMethodIndex(), TMVA::MethodBoost::GetMonitoringHist(), TMVA::BinaryTree::GetNNodes(), TMVA::MethodCompositeBase::GetPreviousMethod(), GetPruneStrength(), TMVA::Types::kBeforeBoosting, TMVA::Types::kBeforeTraining, TMVA::Types::kBoostProcBegin, TMVA::Types::kBoostProcEnd, TMVA::Types::kBoostValidation, kFALSE, TMVA::kINFO, TMVA::DecisionTree::kNoPruning, kTRUE, TMVA::Types::kValidation, TMVA::Configurable::Log(), TMVA::DataSet::MoveTrainingBlock(), PruneTree(), TH1::SetBinContent(), TH1::SetXTitle(), and TH1::SetYTitle().

void TMVA::MethodDT::Init ( void   )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 283 of file MethodDT.cxx.

References TMVA::MethodBase::Data(), TMVA::MethodBase::fAnalysisType, fDeltaPruneStrength, fMaxDepth, fNCuts, fNodeMinEvents, fPruneMethod, fPruneStrength, fRandomisedTrees, fUseNvars, TMVA::MethodBase::GetNvar(), TMVA::Types::kClassification, kFALSE, TMVA::Types::kMulticlass, TMVA::DecisionTree::kNoPruning, TMath::Max(), and TMVA::MethodBase::SetSignalReferenceCut().

virtual Bool_t TMVA::MethodDT::HasAnalysisType ( Types::EAnalysisType  type,
UInt_t  numberClasses,
UInt_t  numberTargets 
) [virtual]

Implements TMVA::IMethod.

void TMVA::MethodDT::Train ( void   )  [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodDT::AddWeightsXMLTo ( void *  parent  )  const [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodDT::ReadWeightsFromStream ( istream &  istr  ) 

void TMVA::MethodDT::ReadWeightsFromXML ( void *  wghtnode  )  [virtual]

Implements TMVA::MethodBase.

Double_t TMVA::MethodDT::GetMvaValue ( Double_t err = 0,
Double_t errUpper = 0 
) [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodDT::DeclareOptions (  )  [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodDT::ProcessOptions (  )  [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodDT::GetHelpMessage (  )  const [virtual]

Implements TMVA::IMethod.

const Ranking* TMVA::MethodDT::CreateRanking (  )  [virtual]

Implements TMVA::MethodBase.

Double_t TMVA::MethodDT::PruneTree ( const Int_t  methodIndex  ) 

Double_t TMVA::MethodDT::TestTreeQuality ( DecisionTree dt  ) 

Double_t TMVA::MethodDT::GetPruneStrength (  )  [inline]

Definition at line 104 of file MethodDT.h.

References fPruneStrength.

Bool_t TMVA::MethodDT::MonitorBoost ( MethodBoost booster  )  [virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodDT::Init ( void   )  [private, virtual]

Implements TMVA::MethodBase.


Member Data Documentation

std::vector<Event*> TMVA::MethodDT::fEventSample [private]

Definition at line 114 of file MethodDT.h.

DecisionTree* TMVA::MethodDT::fTree [private]

Definition at line 116 of file MethodDT.h.

Referenced by AddWeightsXMLTo(), GetMvaValue(), MonitorBoost(), PruneTree(), ReadWeightsFromStream(), ReadWeightsFromXML(), Train(), and ~MethodDT().

SeparationBase* TMVA::MethodDT::fSepType [private]

Definition at line 118 of file MethodDT.h.

Referenced by ProcessOptions(), PruneTree(), and Train().

TString TMVA::MethodDT::fSepTypeS [private]

Definition at line 119 of file MethodDT.h.

Referenced by DeclareOptions(), and ProcessOptions().

Int_t TMVA::MethodDT::fNodeMinEvents [private]

Definition at line 120 of file MethodDT.h.

Referenced by DeclareOptions(), Init(), ProcessOptions(), and Train().

Int_t TMVA::MethodDT::fNCuts [private]

Definition at line 122 of file MethodDT.h.

Referenced by DeclareOptions(), Init(), and Train().

Bool_t TMVA::MethodDT::fUseYesNoLeaf [private]

Definition at line 123 of file MethodDT.h.

Referenced by DeclareOptions(), and GetMvaValue().

Double_t TMVA::MethodDT::fNodePurityLimit [private]

Definition at line 124 of file MethodDT.h.

Referenced by DeclareOptions().

UInt_t TMVA::MethodDT::fNNodesMax [private]

Definition at line 125 of file MethodDT.h.

Referenced by DeclareOptions(), and Train().

UInt_t TMVA::MethodDT::fMaxDepth [private]

Definition at line 126 of file MethodDT.h.

Referenced by DeclareOptions(), Init(), and Train().

Double_t TMVA::MethodDT::fErrorFraction [private]

Definition at line 129 of file MethodDT.h.

Double_t TMVA::MethodDT::fPruneStrength [private]

Definition at line 130 of file MethodDT.h.

Referenced by DeclareOptions(), GetPruneStrength(), Init(), MonitorBoost(), ProcessOptions(), and PruneTree().

DecisionTree::EPruneMethod TMVA::MethodDT::fPruneMethod [private]

Definition at line 131 of file MethodDT.h.

Referenced by Init(), MonitorBoost(), ProcessOptions(), and PruneTree().

TString TMVA::MethodDT::fPruneMethodS [private]

Definition at line 132 of file MethodDT.h.

Referenced by DeclareOptions(), and ProcessOptions().

Bool_t TMVA::MethodDT::fAutomatic [private]

Definition at line 133 of file MethodDT.h.

Referenced by MonitorBoost(), ProcessOptions(), and PruneTree().

Bool_t TMVA::MethodDT::fRandomisedTrees [private]

Definition at line 134 of file MethodDT.h.

Referenced by DeclareOptions(), Init(), ProcessOptions(), and Train().

Int_t TMVA::MethodDT::fUseNvars [private]

Definition at line 135 of file MethodDT.h.

Referenced by DeclareOptions(), Init(), and Train().

Bool_t TMVA::MethodDT::fPruneBeforeBoost [private]

Definition at line 136 of file MethodDT.h.

Referenced by DeclareOptions(), and MonitorBoost().

std::vector<Double_t> TMVA::MethodDT::fVariableImportance [private]

Definition at line 138 of file MethodDT.h.

Double_t TMVA::MethodDT::fDeltaPruneStrength [private]

Definition at line 140 of file MethodDT.h.

Referenced by Init().

static const Int_t TMVA::MethodDT::fgDebugLevel = 0 [static, private]

Definition at line 142 of file MethodDT.h.

std::vector<Event*> TMVA::MethodDT::fEventSample [private]

Definition at line 114 of file MethodDT.h.

DecisionTree* TMVA::MethodDT::fTree [private]

Definition at line 116 of file MethodDT.h.

SeparationBase* TMVA::MethodDT::fSepType [private]

Definition at line 118 of file MethodDT.h.

std::vector<Double_t> TMVA::MethodDT::fVariableImportance [private]

Definition at line 138 of file MethodDT.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:28 2011 for ROOT_528-00b_version by  doxygen 1.5.1