#include <MethodCommittee.h>
Inheritance diagram for TMVA::MethodCommittee:
Definition at line 55 of file MethodCommittee.h.
TMVA::MethodCommittee::MethodCommittee | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | dsi, | |||
const TString & | theOption, | |||
TDirectory * | theTargetDir = 0 | |||
) |
TMVA::MethodCommittee::MethodCommittee | ( | DataSetInfo & | theData, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = 0 | |||
) |
Definition at line 88 of file MethodCommittee.cxx.
TMVA::MethodCommittee::~MethodCommittee | ( | void | ) | [virtual] |
TMVA::MethodCommittee::MethodCommittee | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | dsi, | |||
const TString & | theOption, | |||
TDirectory * | theTargetDir = 0 | |||
) |
TMVA::MethodCommittee::MethodCommittee | ( | DataSetInfo & | theData, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = 0 | |||
) |
virtual TMVA::MethodCommittee::~MethodCommittee | ( | void | ) | [virtual] |
Bool_t TMVA::MethodCommittee::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | numberTargets | |||
) | [virtual] |
Implements TMVA::IMethod.
Definition at line 109 of file MethodCommittee.cxx.
References TMVA::Types::kClassification, kFALSE, TMVA::Types::kRegression, and kTRUE.
void TMVA::MethodCommittee::WriteStateToFile | ( | ) | const |
Reimplemented from TMVA::MethodBase.
Definition at line 175 of file MethodCommittee.cxx.
References Endl, TMVA::MethodBase::GetWeightFileName(), TMVA::kFATAL, TMVA::kINFO, TMVA::Configurable::Log(), and TMVA::MethodBase::WriteStateToStream().
void TMVA::MethodCommittee::Train | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 194 of file MethodCommittee.cxx.
References TMVA::ClassifierFactory::Create(), TMVA::MethodBase::DataInfo(), Endl, TTree::Fill(), fMemberOption, fMemberType, fMonitorNtuple, fNMembers, GetBoostWeights(), GetCommittee(), TMVA::MethodBase::GetJobName(), TMVA::MethodBase::GetMethodName(), TMVA::MethodBase::GetName(), TMVA::Types::Instance(), TMVA::ClassifierFactory::Instance(), TMVA::kINFO, TMVA::Configurable::Log(), method, and timer.
void TMVA::MethodCommittee::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
Definition at line 368 of file MethodCommittee.cxx.
References Endl, TMVA::kFATAL, and TMVA::Configurable::Log().
void TMVA::MethodCommittee::ReadWeightsFromStream | ( | istream & | istr | ) |
Definition at line 373 of file MethodCommittee.cxx.
References TMVA::ClassifierFactory::Create(), TMVA::MethodBase::DataInfo(), dummy, Endl, fMemberType, fNMembers, GetBoostWeights(), GetCommittee(), TMVA::MethodBase::GetMethodName(), i, TMVA::Types::Instance(), TMVA::ClassifierFactory::Instance(), TMVA::kFATAL, TMVA::Configurable::Log(), m, and method.
void TMVA::MethodCommittee::ReadWeightsFromXML | ( | void * | ) | [inline, virtual] |
void TMVA::MethodCommittee::WriteMonitoringHistosToFile | ( | void | ) | const [virtual] |
Reimplemented from TMVA::MethodBase.
Definition at line 450 of file MethodCommittee.cxx.
References TMVA::MethodBase::BaseDir(), TDirectory::cd(), Endl, fBoostFactorHist, fErrFractHist, fMonitorNtuple, TDirectory::GetPath(), TMVA::kINFO, TMVA::Configurable::Log(), TObject::Write(), and TTree::Write().
Double_t TMVA::MethodCommittee::GetMvaValue | ( | Double_t * | err = 0 , |
|
Double_t * | errUpper = 0 | |||
) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 414 of file MethodCommittee.cxx.
References fUseMemberDecision, fUseWeightedMembers, GetBoostWeights(), GetCommittee(), m, TMVA::MethodBase::NoErrorCalc(), and norm().
Double_t TMVA::MethodCommittee::Boost | ( | TMVA::MethodBase * | , | |
UInt_t | imember | |||
) |
Definition at line 228 of file MethodCommittee.cxx.
References AdaBoost(), Bagging(), Endl, fBoostType, TMVA::Configurable::GetOptions(), TMVA::kFATAL, TMVA::kINFO, TMVA::Configurable::Log(), and method.
const TMVA::Ranking * TMVA::MethodCommittee::CreateRanking | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 498 of file MethodCommittee.cxx.
References TMVA::Ranking::AddRank(), TMVA::MethodBase::fRanking, TMVA::MethodBase::GetInputLabel(), TMVA::MethodBase::GetName(), and TMVA::MethodBase::GetNvar().
void TMVA::MethodCommittee::DeclareOptions | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 118 of file MethodCommittee.cxx.
References TMVA::Configurable::AddPreDefVal(), TMVA::Configurable::DeclareOptionRef(), fBoostType, fNMembers, fUseMemberDecision, fUseWeightedMembers, kFALSE, and kTRUE.
void TMVA::MethodCommittee::ProcessOptions | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 140 of file MethodCommittee.cxx.
References TTree::Branch(), fBoostFactor, fBoostFactorHist, fErrFractHist, fErrorFraction, fITree, fMonitorNtuple, and fNMembers.
const std::vector<TMVA::IMethod*>& TMVA::MethodCommittee::GetCommittee | ( | ) | const [inline] |
Definition at line 107 of file MethodCommittee.h.
References fCommittee.
Referenced by AdaBoost(), GetMvaValue(), ReadWeightsFromStream(), Train(), and ~MethodCommittee().
const std::vector<Double_t>& TMVA::MethodCommittee::GetBoostWeights | ( | ) | const [inline] |
Definition at line 108 of file MethodCommittee.h.
References fBoostWeights.
Referenced by GetMvaValue(), ReadWeightsFromStream(), and Train().
vector< Double_t > TMVA::MethodCommittee::GetVariableImportance | ( | ) |
Definition at line 465 of file MethodCommittee.cxx.
References fVariableImportance, and TMVA::MethodBase::GetNvar().
Referenced by GetVariableImportance().
Definition at line 487 of file MethodCommittee.cxx.
References Endl, GetVariableImportance(), TMVA::kFATAL, and TMVA::Configurable::Log().
void TMVA::MethodCommittee::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
void TMVA::MethodCommittee::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
Definition at line 522 of file MethodCommittee.cxx.
References TMVA::Tools::Color(), Endl, TMVA::gTools(), and TMVA::Configurable::Log().
std::vector<IMethod*>& TMVA::MethodCommittee::GetCommittee | ( | ) | [inline, private] |
std::vector<Double_t>& TMVA::MethodCommittee::GetBoostWeights | ( | ) | [inline, private] |
Double_t TMVA::MethodCommittee::AdaBoost | ( | MethodBase * | ) | [private] |
Definition at line 245 of file MethodCommittee.cxx.
References TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), Endl, fBoostFactor, fBoostFactorHist, fErrFractHist, fErrorFraction, TH2::Fill(), TH1::Fill(), TMVA::Event::GetBoostWeight(), GetCommittee(), TMVA::DataSet::GetEvent(), TMVA::DataSet::GetNTrainingEvents(), i, TMVA::MethodBase::IsSignalLike(), kFALSE, TMVA::kFATAL, kTRUE, TMath::Log(), TMVA::Configurable::Log(), method, TMath::Power(), TMVA::Event::SetBoostWeight(), and size.
Referenced by Boost().
Definition at line 339 of file MethodCommittee.cxx.
References TMVA::MethodBase::Data(), TMVA::DataSet::GetEvent(), TMVA::DataSet::GetNTrainingEvents(), TRandom3::Rndm(), and TMVA::Event::SetBoostWeight().
Referenced by Boost().
void TMVA::MethodCommittee::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 155 of file MethodCommittee.cxx.
References fBoostType, fBoostWeights, fCommittee, and fNMembers.
virtual Bool_t TMVA::MethodCommittee::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | numberTargets | |||
) | [virtual] |
Implements TMVA::IMethod.
void TMVA::MethodCommittee::WriteStateToFile | ( | ) | const |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodCommittee::Train | ( | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodCommittee::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodCommittee::ReadWeightsFromStream | ( | istream & | istr | ) |
void TMVA::MethodCommittee::ReadWeightsFromXML | ( | void * | ) | [inline, virtual] |
void TMVA::MethodCommittee::WriteMonitoringHistosToFile | ( | void | ) | const [virtual] |
Reimplemented from TMVA::MethodBase.
Double_t TMVA::MethodCommittee::GetMvaValue | ( | Double_t * | err = 0 , |
|
Double_t * | errUpper = 0 | |||
) | [virtual] |
Implements TMVA::MethodBase.
Double_t TMVA::MethodCommittee::Boost | ( | TMVA::MethodBase * | , | |
UInt_t | imember | |||
) |
const Ranking* TMVA::MethodCommittee::CreateRanking | ( | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodCommittee::DeclareOptions | ( | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodCommittee::ProcessOptions | ( | ) | [virtual] |
Implements TMVA::MethodBase.
const std::vector<TMVA::IMethod*>& TMVA::MethodCommittee::GetCommittee | ( | ) | const [inline] |
const std::vector<Double_t>& TMVA::MethodCommittee::GetBoostWeights | ( | ) | const [inline] |
std::vector<Double_t> TMVA::MethodCommittee::GetVariableImportance | ( | ) |
void TMVA::MethodCommittee::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodCommittee::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
std::vector<IMethod*>& TMVA::MethodCommittee::GetCommittee | ( | ) | [inline, private] |
std::vector<Double_t>& TMVA::MethodCommittee::GetBoostWeights | ( | ) | [inline, private] |
Double_t TMVA::MethodCommittee::AdaBoost | ( | MethodBase * | ) | [private] |
void TMVA::MethodCommittee::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
UInt_t TMVA::MethodCommittee::fNMembers [private] |
Definition at line 134 of file MethodCommittee.h.
Referenced by DeclareOptions(), Init(), ProcessOptions(), ReadWeightsFromStream(), and Train().
std::vector<IMethod*> TMVA::MethodCommittee::fCommittee [private] |
Definition at line 135 of file MethodCommittee.h.
Referenced by GetCommittee(), Init(), and ~MethodCommittee().
std::vector<Double_t> TMVA::MethodCommittee::fBoostWeights [private] |
TString TMVA::MethodCommittee::fBoostType [private] |
Definition at line 137 of file MethodCommittee.h.
Referenced by Boost(), DeclareOptions(), and Init().
Definition at line 140 of file MethodCommittee.h.
Referenced by ReadWeightsFromStream(), and Train().
TString TMVA::MethodCommittee::fMemberOption [private] |
Definition at line 143 of file MethodCommittee.h.
Referenced by DeclareOptions(), and GetMvaValue().
Definition at line 146 of file MethodCommittee.h.
Referenced by DeclareOptions(), and GetMvaValue().
TH1F* TMVA::MethodCommittee::fBoostFactorHist [private] |
Definition at line 153 of file MethodCommittee.h.
Referenced by AdaBoost(), ProcessOptions(), and WriteMonitoringHistosToFile().
TH2F* TMVA::MethodCommittee::fErrFractHist [private] |
Definition at line 154 of file MethodCommittee.h.
Referenced by AdaBoost(), ProcessOptions(), and WriteMonitoringHistosToFile().
TTree* TMVA::MethodCommittee::fMonitorNtuple [private] |
Definition at line 155 of file MethodCommittee.h.
Referenced by ProcessOptions(), Train(), and WriteMonitoringHistosToFile().
Int_t TMVA::MethodCommittee::fITree [private] |
Double_t TMVA::MethodCommittee::fBoostFactor [private] |
Int_t TMVA::MethodCommittee::fNnodes [private] |
Definition at line 159 of file MethodCommittee.h.
std::vector< Double_t > TMVA::MethodCommittee::fVariableImportance [private] |
std::vector<IMethod*> TMVA::MethodCommittee::fCommittee [private] |
Definition at line 135 of file MethodCommittee.h.
std::vector<Double_t> TMVA::MethodCommittee::fBoostWeights [private] |
Definition at line 136 of file MethodCommittee.h.
TH1F* TMVA::MethodCommittee::fBoostFactorHist [private] |
Definition at line 153 of file MethodCommittee.h.
TH2F* TMVA::MethodCommittee::fErrFractHist [private] |
Definition at line 154 of file MethodCommittee.h.
TTree* TMVA::MethodCommittee::fMonitorNtuple [private] |
Definition at line 155 of file MethodCommittee.h.