#include <MethodDT.h>
Inheritance diagram for TMVA::MethodDT:
Definition at line 61 of file MethodDT.h.
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] |
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] |
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 | ) |
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().
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] |
const TMVA::Ranking * TMVA::MethodDT::CreateRanking | ( | ) | [virtual] |
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] |
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.
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::TestTreeQuality | ( | DecisionTree * | dt | ) |
Double_t TMVA::MethodDT::GetPruneStrength | ( | ) | [inline] |
Bool_t TMVA::MethodDT::MonitorBoost | ( | MethodBoost * | booster | ) | [virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodDT::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
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] |
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] |
Bool_t TMVA::MethodDT::fUseYesNoLeaf [private] |
Double_t TMVA::MethodDT::fNodePurityLimit [private] |
UInt_t TMVA::MethodDT::fNNodesMax [private] |
UInt_t TMVA::MethodDT::fMaxDepth [private] |
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().
Definition at line 131 of file MethodDT.h.
Referenced by Init(), MonitorBoost(), ProcessOptions(), and PruneTree().
TString TMVA::MethodDT::fPruneMethodS [private] |
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] |
Bool_t TMVA::MethodDT::fPruneBeforeBoost [private] |
std::vector<Double_t> TMVA::MethodDT::fVariableImportance [private] |
Definition at line 138 of file MethodDT.h.
Double_t TMVA::MethodDT::fDeltaPruneStrength [private] |
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.