#include <MethodLD.h>
Inheritance diagram for TMVA::MethodLD:
Public Member Functions | |
MethodLD (const TString &jobName, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="LD", TDirectory *theTargetDir=0) | |
MethodLD (DataSetInfo &dsi, const TString &theWeightFile, TDirectory *theTargetDir=0) | |
virtual | ~MethodLD (void) |
Bool_t | HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets) |
void | Train (void) |
Double_t | GetMvaValue (Double_t *err=0, Double_t *errUpper=0) |
virtual const std::vector< Float_t > & | GetRegressionValues () |
void | AddWeightsXMLTo (void *parent) const |
void | ReadWeightsFromStream (std::istream &i) |
void | ReadWeightsFromXML (void *wghtnode) |
const Ranking * | CreateRanking () |
void | DeclareOptions () |
void | ProcessOptions () |
MethodLD (const TString &jobName, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="LD", TDirectory *theTargetDir=0) | |
MethodLD (DataSetInfo &dsi, const TString &theWeightFile, TDirectory *theTargetDir=0) | |
virtual | ~MethodLD (void) |
Bool_t | HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets) |
void | Train (void) |
Double_t | GetMvaValue (Double_t *err=0, Double_t *errUpper=0) |
virtual const std::vector< Float_t > & | GetRegressionValues () |
void | AddWeightsXMLTo (void *parent) const |
void | ReadWeightsFromStream (std::istream &i) |
void | ReadWeightsFromXML (void *wghtnode) |
const Ranking * | CreateRanking () |
void | DeclareOptions () |
void | ProcessOptions () |
Protected Member Functions | |
void | MakeClassSpecific (std::ostream &, const TString &) const |
void | GetHelpMessage () const |
void | MakeClassSpecific (std::ostream &, const TString &) const |
void | GetHelpMessage () const |
Private Member Functions | |
void | Init (void) |
void | InitMatrices (void) |
void | GetSum (void) |
void | GetSumVal (void) |
void | GetLDCoeff (void) |
void | PrintCoefficients (void) |
void | Init (void) |
void | InitMatrices (void) |
void | GetSum (void) |
void | GetSumVal (void) |
void | GetLDCoeff (void) |
void | PrintCoefficients (void) |
Private Attributes | |
Int_t | fNRegOut |
TMatrixD * | fSumMatx |
TMatrixD * | fSumValMatx |
TMatrixD * | fCoeffMatx |
std::vector< std::vector< Double_t > * > * | fLDCoeff |
TMatrixD * | fSumMatx |
TMatrixD * | fSumValMatx |
TMatrixD * | fCoeffMatx |
std::vector< std::vector< Double_t > * > * | fLDCoeff |
Definition at line 53 of file MethodLD.h.
TMVA::MethodLD::MethodLD | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | dsi, | |||
const TString & | theOption = "LD" , |
|||
TDirectory * | theTargetDir = 0 | |||
) |
TMVA::MethodLD::MethodLD | ( | DataSetInfo & | dsi, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = 0 | |||
) |
Definition at line 65 of file MethodLD.cxx.
TMVA::MethodLD::~MethodLD | ( | void | ) | [virtual] |
Definition at line 92 of file MethodLD.cxx.
References fCoeffMatx, fLDCoeff, fSumMatx, and fSumValMatx.
TMVA::MethodLD::MethodLD | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | dsi, | |||
const TString & | theOption = "LD" , |
|||
TDirectory * | theTargetDir = 0 | |||
) |
TMVA::MethodLD::MethodLD | ( | DataSetInfo & | dsi, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = 0 | |||
) |
virtual TMVA::MethodLD::~MethodLD | ( | void | ) | [virtual] |
Bool_t TMVA::MethodLD::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | numberTargets | |||
) | [virtual] |
Implements TMVA::IMethod.
Definition at line 106 of file MethodLD.cxx.
References TMVA::Types::kClassification, kFALSE, TMVA::Types::kRegression, kTRUE, and TMVA::Configurable::Log().
void TMVA::MethodLD::Train | ( | void | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 119 of file MethodLD.cxx.
References GetLDCoeff(), GetSum(), GetSumVal(), and PrintCoefficients().
Implements TMVA::MethodBase.
Definition at line 135 of file MethodLD.cxx.
References fLDCoeff, fNRegOut, TMVA::MethodBase::fRegressionReturnVal, TMVA::MethodBase::GetEvent(), TMVA::Event::GetValues(), TMVA::MethodBase::NoErrorCalc(), and NULL.
const std::vector< Float_t > & TMVA::MethodLD::GetRegressionValues | ( | ) | [virtual] |
Reimplemented from TMVA::MethodBase.
Definition at line 159 of file MethodLD.cxx.
References Event, fLDCoeff, fNRegOut, TMVA::MethodBase::fRegressionReturnVal, TMVA::MethodBase::GetEvent(), TMVA::Event::GetTarget(), TMVA::MethodBase::GetTransformationHandler(), TMVA::Event::GetValues(), TMVA::TransformationHandler::InverseTransform(), NULL, and TMVA::Event::SetTarget().
void TMVA::MethodLD::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
Definition at line 315 of file MethodLD.cxx.
References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), fLDCoeff, TMVA::MethodBase::GetNvar(), and TMVA::gTools().
void TMVA::MethodLD::ReadWeightsFromStream | ( | std::istream & | i | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLD::ReadWeightsFromXML | ( | void * | wghtnode | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 334 of file MethodLD.cxx.
References Endl, fLDCoeff, TMVA::Tools::GetChild(), TMVA::Tools::GetNextChild(), TMVA::MethodBase::GetNvar(), TMVA::gTools(), TMVA::kFATAL, TMVA::Configurable::Log(), and TMVA::Tools::ReadAttr().
const TMVA::Ranking * TMVA::MethodLD::CreateRanking | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 410 of file MethodLD.cxx.
References TMath::Abs(), TMVA::Ranking::AddRank(), fLDCoeff, TMVA::MethodBase::fRanking, TMVA::MethodBase::GetInputLabel(), TMVA::MethodBase::GetName(), and TMVA::MethodBase::GetNvar().
void TMVA::MethodLD::DeclareOptions | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 425 of file MethodLD.cxx.
References TMVA::Configurable::AddPreDefVal().
void TMVA::MethodLD::ProcessOptions | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 432 of file MethodLD.cxx.
References TMVA::MethodBase::HasTrainingTree(), and InitMatrices().
void TMVA::MethodLD::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
Definition at line 369 of file MethodLD.cxx.
References TMVA::MethodBase::GetNvar().
void TMVA::MethodLD::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
Definition at line 486 of file MethodLD.cxx.
References TMVA::Tools::Color(), Endl, TMVA::gTools(), and TMVA::Configurable::Log().
void TMVA::MethodLD::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 77 of file MethodLD.cxx.
References TMVA::MethodBase::DataInfo(), fLDCoeff, fNRegOut, TMVA::DataSetInfo::GetNTargets(), TMVA::MethodBase::GetNTargets(), TMVA::MethodBase::GetNvar(), and TMVA::MethodBase::SetSignalReferenceCut().
void TMVA::MethodLD::InitMatrices | ( | void | ) | [private] |
Definition at line 189 of file MethodLD.cxx.
References fCoeffMatx, fNRegOut, fSumMatx, fSumValMatx, and TMVA::MethodBase::GetNvar().
Referenced by ProcessOptions().
void TMVA::MethodLD::GetSum | ( | void | ) | [private] |
Definition at line 200 of file MethodLD.cxx.
References TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), fSumMatx, TMVA::MethodBase::GetEvent(), TMVA::DataSet::GetNEvents(), TMVA::DataSetInfo::GetNVariables(), TMVA::MethodBase::IgnoreEventsWithNegWeightsInTraining(), and Long64_t.
Referenced by Train().
void TMVA::MethodLD::GetSumVal | ( | void | ) | [private] |
Definition at line 234 of file MethodLD.cxx.
References TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), TMVA::MethodBase::DoRegression(), fNRegOut, fSumValMatx, TMVA::MethodBase::GetEvent(), TMVA::DataSet::GetNEvents(), TMVA::DataSetInfo::GetNVariables(), TMVA::MethodBase::IgnoreEventsWithNegWeightsInTraining(), and val.
Referenced by Train().
void TMVA::MethodLD::GetLDCoeff | ( | void | ) | [private] |
Definition at line 270 of file MethodLD.cxx.
References TMath::Abs(), TMVA::MethodBase::DataInfo(), TMVA::MethodBase::DoRegression(), E, Endl, fCoeffMatx, fLDCoeff, fNRegOut, fSumMatx, fSumValMatx, TMVA::DataSetInfo::GetNVariables(), TMVA::kFATAL, TMVA::kWARNING, and TMVA::Configurable::Log().
Referenced by Train().
void TMVA::MethodLD::PrintCoefficients | ( | void | ) | [private] |
Definition at line 439 of file MethodLD.cxx.
References TMath::Abs(), Endl, fLDCoeff, TMVA::Tools::FormattedOutput(), TMVA::MethodBase::GetInputLabel(), TMVA::MethodBase::GetNvar(), TMVA::MethodBase::GetTransformationHandler(), TMVA::MethodBase::GetXmax(), TMVA::MethodBase::GetXmin(), TMVA::gTools(), TMVA::MethodBase::IsNormalised(), TMVA::kINFO, TString::Length(), and TMVA::Configurable::Log().
Referenced by Train().
Bool_t TMVA::MethodLD::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | numberTargets | |||
) | [virtual] |
Implements TMVA::IMethod.
void TMVA::MethodLD::Train | ( | void | ) | [virtual] |
Implements TMVA::MethodBase.
Implements TMVA::MethodBase.
virtual const std::vector<Float_t>& TMVA::MethodLD::GetRegressionValues | ( | ) | [virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodLD::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLD::ReadWeightsFromStream | ( | std::istream & | i | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLD::ReadWeightsFromXML | ( | void * | wghtnode | ) | [virtual] |
Implements TMVA::MethodBase.
const Ranking* TMVA::MethodLD::CreateRanking | ( | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLD::DeclareOptions | ( | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLD::ProcessOptions | ( | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLD::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodLD::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
void TMVA::MethodLD::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLD::InitMatrices | ( | void | ) | [private] |
void TMVA::MethodLD::GetSum | ( | void | ) | [private] |
void TMVA::MethodLD::GetSumVal | ( | void | ) | [private] |
void TMVA::MethodLD::GetLDCoeff | ( | void | ) | [private] |
void TMVA::MethodLD::PrintCoefficients | ( | void | ) | [private] |
Int_t TMVA::MethodLD::fNRegOut [private] |
Definition at line 101 of file MethodLD.h.
Referenced by GetLDCoeff(), GetMvaValue(), GetRegressionValues(), GetSumVal(), Init(), and InitMatrices().
TMatrixD* TMVA::MethodLD::fSumMatx [private] |
Definition at line 103 of file MethodLD.h.
Referenced by GetLDCoeff(), GetSum(), InitMatrices(), and ~MethodLD().
TMatrixD* TMVA::MethodLD::fSumValMatx [private] |
Definition at line 104 of file MethodLD.h.
Referenced by GetLDCoeff(), GetSumVal(), InitMatrices(), and ~MethodLD().
TMatrixD* TMVA::MethodLD::fCoeffMatx [private] |
Definition at line 105 of file MethodLD.h.
Referenced by GetLDCoeff(), InitMatrices(), and ~MethodLD().
std::vector< std::vector<Double_t>* >* TMVA::MethodLD::fLDCoeff [private] |
Definition at line 106 of file MethodLD.h.
Referenced by AddWeightsXMLTo(), CreateRanking(), GetLDCoeff(), GetMvaValue(), GetRegressionValues(), Init(), PrintCoefficients(), ReadWeightsFromXML(), and ~MethodLD().
TMatrixD* TMVA::MethodLD::fSumMatx [private] |
Definition at line 103 of file MethodLD.h.
TMatrixD* TMVA::MethodLD::fSumValMatx [private] |
Definition at line 104 of file MethodLD.h.
TMatrixD* TMVA::MethodLD::fCoeffMatx [private] |
Definition at line 105 of file MethodLD.h.
std::vector< std::vector<Double_t>* >* TMVA::MethodLD::fLDCoeff [private] |
Definition at line 106 of file MethodLD.h.