#include <MethodFisher.h>
Inheritance diagram for TMVA::MethodFisher:
Public Types | |
enum | EFisherMethod |
enum | EFisherMethod |
Public Member Functions | |
MethodFisher (const TString &jobName, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="Fisher", TDirectory *theTargetDir=0) | |
MethodFisher (DataSetInfo &dsi, const TString &theWeightFile, TDirectory *theTargetDir=NULL) | |
virtual | ~MethodFisher (void) |
virtual Bool_t | HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets) |
void | Train (void) |
void | AddWeightsXMLTo (void *parent) const |
void | ReadWeightsFromStream (std::istream &i) |
void | ReadWeightsFromXML (void *wghtnode) |
Double_t | GetMvaValue (Double_t *err=0, Double_t *errUpper=0) |
EFisherMethod | GetFisherMethod (void) |
const Ranking * | CreateRanking () |
MethodFisher (const TString &jobName, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="Fisher", TDirectory *theTargetDir=0) | |
MethodFisher (DataSetInfo &dsi, const TString &theWeightFile, TDirectory *theTargetDir=NULL) | |
virtual | ~MethodFisher (void) |
virtual Bool_t | HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets) |
void | Train (void) |
void | AddWeightsXMLTo (void *parent) const |
void | ReadWeightsFromStream (std::istream &i) |
void | ReadWeightsFromXML (void *wghtnode) |
Double_t | GetMvaValue (Double_t *err=0, Double_t *errUpper=0) |
EFisherMethod | GetFisherMethod (void) |
const Ranking * | CreateRanking () |
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 | DeclareOptions () |
void | ProcessOptions () |
void | InitMatrices (void) |
void | GetMean (void) |
void | GetCov_WithinClass (void) |
void | GetCov_BetweenClass (void) |
void | GetCov_Full (void) |
void | GetDiscrimPower (void) |
void | PrintCoefficients (void) |
void | GetFisherCoeff (void) |
void | Init (void) |
void | DeclareOptions () |
void | ProcessOptions () |
void | InitMatrices (void) |
void | GetMean (void) |
void | GetCov_WithinClass (void) |
void | GetCov_BetweenClass (void) |
void | GetCov_Full (void) |
void | GetDiscrimPower (void) |
void | PrintCoefficients (void) |
void | GetFisherCoeff (void) |
void | Init (void) |
Private Attributes | |
TMatrixD * | fMeanMatx |
TString | fTheMethod |
EFisherMethod | fFisherMethod |
TMatrixD * | fBetw |
TMatrixD * | fWith |
TMatrixD * | fCov |
Double_t | fSumOfWeightsS |
Double_t | fSumOfWeightsB |
std::vector< Double_t > * | fDiscrimPow |
std::vector< Double_t > * | fFisherCoeff |
Double_t | fF0 |
TMatrixD * | fMeanMatx |
TMatrixD * | fBetw |
TMatrixD * | fWith |
TMatrixD * | fCov |
std::vector< Double_t > * | fDiscrimPow |
std::vector< Double_t > * | fFisherCoeff |
Definition at line 58 of file MethodFisher.h.
Definition at line 92 of file MethodFisher.h.
Definition at line 92 of file MethodFisher.h.
TMVA::MethodFisher::MethodFisher | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | dsi, | |||
const TString & | theOption = "Fisher" , |
|||
TDirectory * | theTargetDir = 0 | |||
) |
Definition at line 123 of file MethodFisher.cxx.
TMVA::MethodFisher::MethodFisher | ( | DataSetInfo & | dsi, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = NULL | |||
) |
Definition at line 145 of file MethodFisher.cxx.
TMVA::MethodFisher::~MethodFisher | ( | void | ) | [virtual] |
Definition at line 204 of file MethodFisher.cxx.
References fBetw, fCov, fDiscrimPow, fFisherCoeff, and fWith.
TMVA::MethodFisher::MethodFisher | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | dsi, | |||
const TString & | theOption = "Fisher" , |
|||
TDirectory * | theTargetDir = 0 | |||
) |
TMVA::MethodFisher::MethodFisher | ( | DataSetInfo & | dsi, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = NULL | |||
) |
virtual TMVA::MethodFisher::~MethodFisher | ( | void | ) | [virtual] |
Bool_t TMVA::MethodFisher::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | numberTargets | |||
) | [virtual] |
Implements TMVA::IMethod.
Definition at line 215 of file MethodFisher.cxx.
References TMVA::Types::kClassification, kFALSE, and kTRUE.
void TMVA::MethodFisher::Train | ( | void | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 223 of file MethodFisher.cxx.
References GetCov_BetweenClass(), GetCov_Full(), GetCov_WithinClass(), GetDiscrimPower(), GetFisherCoeff(), GetMean(), and PrintCoefficients().
void TMVA::MethodFisher::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
Definition at line 576 of file MethodFisher.cxx.
References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), fFisherCoeff, TMVA::MethodBase::GetNvar(), and TMVA::gTools().
void TMVA::MethodFisher::ReadWeightsFromStream | ( | std::istream & | i | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodFisher::ReadWeightsFromXML | ( | void * | wghtnode | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 593 of file MethodFisher.cxx.
References fFisherCoeff, TMVA::Tools::GetChild(), TMVA::Tools::GetNextChild(), TMVA::gTools(), and TMVA::Tools::ReadAttr().
Implements TMVA::MethodBase.
Definition at line 252 of file MethodFisher.cxx.
References fF0, fFisherCoeff, TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetNvar(), TMVA::Event::GetValue(), TMVA::MethodBase::NoErrorCalc(), and result().
EFisherMethod TMVA::MethodFisher::GetFisherMethod | ( | void | ) | [inline] |
Definition at line 93 of file MethodFisher.h.
References fFisherMethod.
Referenced by GetFisherCoeff().
const TMVA::Ranking * TMVA::MethodFisher::CreateRanking | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 504 of file MethodFisher.cxx.
References TMVA::Ranking::AddRank(), fDiscrimPow, TMVA::MethodBase::fRanking, TMVA::MethodBase::GetInputLabel(), TMVA::MethodBase::GetName(), and TMVA::MethodBase::GetNvar().
void TMVA::MethodFisher::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
Definition at line 612 of file MethodFisher.cxx.
References TMVA::MethodBase::GetNvar().
void TMVA::MethodFisher::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
Definition at line 655 of file MethodFisher.cxx.
References TMVA::Tools::Color(), Endl, TMVA::gTools(), and TMVA::Configurable::Log().
void TMVA::MethodFisher::DeclareOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 180 of file MethodFisher.cxx.
References TMVA::Configurable::AddPreDefVal(), TMVA::Configurable::DeclareOptionRef(), and fTheMethod.
void TMVA::MethodFisher::ProcessOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 193 of file MethodFisher.cxx.
References fFisherMethod, fTheMethod, InitMatrices(), kFisher, and kMahalanobis.
void TMVA::MethodFisher::InitMatrices | ( | void | ) | [private] |
Definition at line 268 of file MethodFisher.cxx.
References fBetw, fCov, fDiscrimPow, fMeanMatx, fWith, and TMVA::MethodBase::GetNvar().
Referenced by Init(), and ProcessOptions().
void TMVA::MethodFisher::GetMean | ( | void | ) | [private] |
Definition at line 285 of file MethodFisher.cxx.
References TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), fMeanMatx, fSumOfWeightsB, fSumOfWeightsS, TMVA::MethodBase::GetEvent(), TMVA::DataSet::GetNEvents(), TMVA::DataSetInfo::GetNVariables(), TMVA::MethodBase::GetTWeight(), and TMVA::DataSetInfo::IsSignal().
Referenced by Train().
void TMVA::MethodFisher::GetCov_WithinClass | ( | void | ) | [private] |
Definition at line 331 of file MethodFisher.cxx.
References TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), fMeanMatx, fSumOfWeightsB, fSumOfWeightsS, fWith, TMVA::MethodBase::GetEvent(), TMVA::DataSet::GetNEvents(), TMVA::MethodBase::GetNvar(), TMVA::MethodBase::GetTWeight(), k, x, and y.
Referenced by Train().
void TMVA::MethodFisher::GetCov_BetweenClass | ( | void | ) | [private] |
Definition at line 383 of file MethodFisher.cxx.
References fMeanMatx, fSumOfWeightsB, fSumOfWeightsS, TMVA::MethodBase::GetNvar(), x, and y.
Referenced by Train().
void TMVA::MethodFisher::GetCov_Full | ( | void | ) | [private] |
Definition at line 408 of file MethodFisher.cxx.
References fBetw, fCov, fWith, TMVA::MethodBase::GetNvar(), x, and y.
Referenced by Train().
void TMVA::MethodFisher::GetDiscrimPower | ( | void | ) | [private] |
Definition at line 487 of file MethodFisher.cxx.
References fCov, fDiscrimPow, and TMVA::MethodBase::GetNvar().
Referenced by Train().
void TMVA::MethodFisher::PrintCoefficients | ( | void | ) | [private] |
Definition at line 519 of file MethodFisher.cxx.
References TMath::Abs(), Endl, fF0, fFisherCoeff, 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().
void TMVA::MethodFisher::GetFisherCoeff | ( | void | ) | [private] |
Definition at line 417 of file MethodFisher.cxx.
References TMath::Abs(), d, TMatrixT< Element >::Determinant(), E, Endl, fCov, fF0, fFisherCoeff, fMeanMatx, fSumOfWeightsB, fSumOfWeightsS, fWith, GetFisherMethod(), TMVA::MethodBase::GetNvar(), TMatrixT< Element >::Invert(), TMVA::kFATAL, kFisher, kMahalanobis, TMVA::kWARNING, TMVA::Configurable::Log(), and TMath::Sqrt().
Referenced by Train().
void TMVA::MethodFisher::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 165 of file MethodFisher.cxx.
References fFisherCoeff, TMVA::MethodBase::GetNvar(), InitMatrices(), and TMVA::MethodBase::SetSignalReferenceCut().
virtual Bool_t TMVA::MethodFisher::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | numberTargets | |||
) | [virtual] |
Implements TMVA::IMethod.
void TMVA::MethodFisher::Train | ( | void | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodFisher::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodFisher::ReadWeightsFromStream | ( | std::istream & | i | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodFisher::ReadWeightsFromXML | ( | void * | wghtnode | ) | [virtual] |
Implements TMVA::MethodBase.
Implements TMVA::MethodBase.
EFisherMethod TMVA::MethodFisher::GetFisherMethod | ( | void | ) | [inline] |
const Ranking* TMVA::MethodFisher::CreateRanking | ( | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodFisher::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodFisher::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
void TMVA::MethodFisher::DeclareOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodFisher::ProcessOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodFisher::InitMatrices | ( | void | ) | [private] |
void TMVA::MethodFisher::GetMean | ( | void | ) | [private] |
void TMVA::MethodFisher::GetCov_WithinClass | ( | void | ) | [private] |
void TMVA::MethodFisher::GetCov_BetweenClass | ( | void | ) | [private] |
void TMVA::MethodFisher::GetCov_Full | ( | void | ) | [private] |
void TMVA::MethodFisher::GetDiscrimPower | ( | void | ) | [private] |
void TMVA::MethodFisher::PrintCoefficients | ( | void | ) | [private] |
void TMVA::MethodFisher::GetFisherCoeff | ( | void | ) | [private] |
void TMVA::MethodFisher::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
TMatrixD* TMVA::MethodFisher::fMeanMatx [private] |
Definition at line 137 of file MethodFisher.h.
Referenced by GetCov_BetweenClass(), GetCov_WithinClass(), GetFisherCoeff(), GetMean(), and InitMatrices().
TString TMVA::MethodFisher::fTheMethod [private] |
Definition at line 140 of file MethodFisher.h.
Referenced by DeclareOptions(), and ProcessOptions().
Definition at line 141 of file MethodFisher.h.
Referenced by GetFisherMethod(), and ProcessOptions().
TMatrixD* TMVA::MethodFisher::fBetw [private] |
Definition at line 144 of file MethodFisher.h.
Referenced by GetCov_Full(), InitMatrices(), and ~MethodFisher().
TMatrixD* TMVA::MethodFisher::fWith [private] |
Definition at line 145 of file MethodFisher.h.
Referenced by GetCov_Full(), GetCov_WithinClass(), GetFisherCoeff(), InitMatrices(), and ~MethodFisher().
TMatrixD* TMVA::MethodFisher::fCov [private] |
Definition at line 146 of file MethodFisher.h.
Referenced by GetCov_Full(), GetDiscrimPower(), GetFisherCoeff(), InitMatrices(), and ~MethodFisher().
Double_t TMVA::MethodFisher::fSumOfWeightsS [private] |
Definition at line 149 of file MethodFisher.h.
Referenced by GetCov_BetweenClass(), GetCov_WithinClass(), GetFisherCoeff(), and GetMean().
Double_t TMVA::MethodFisher::fSumOfWeightsB [private] |
Definition at line 150 of file MethodFisher.h.
Referenced by GetCov_BetweenClass(), GetCov_WithinClass(), GetFisherCoeff(), and GetMean().
std::vector<Double_t>* TMVA::MethodFisher::fDiscrimPow [private] |
Definition at line 152 of file MethodFisher.h.
Referenced by CreateRanking(), GetDiscrimPower(), InitMatrices(), and ~MethodFisher().
std::vector<Double_t>* TMVA::MethodFisher::fFisherCoeff [private] |
Definition at line 153 of file MethodFisher.h.
Referenced by AddWeightsXMLTo(), GetFisherCoeff(), GetMvaValue(), Init(), PrintCoefficients(), ReadWeightsFromXML(), and ~MethodFisher().
Double_t TMVA::MethodFisher::fF0 [private] |
Definition at line 154 of file MethodFisher.h.
Referenced by GetFisherCoeff(), GetMvaValue(), and PrintCoefficients().
TMatrixD* TMVA::MethodFisher::fMeanMatx [private] |
Definition at line 137 of file MethodFisher.h.
TMatrixD* TMVA::MethodFisher::fBetw [private] |
Definition at line 144 of file MethodFisher.h.
TMatrixD* TMVA::MethodFisher::fWith [private] |
Definition at line 145 of file MethodFisher.h.
TMatrixD* TMVA::MethodFisher::fCov [private] |
Definition at line 146 of file MethodFisher.h.
std::vector<Double_t>* TMVA::MethodFisher::fDiscrimPow [private] |
Definition at line 152 of file MethodFisher.h.
std::vector<Double_t>* TMVA::MethodFisher::fFisherCoeff [private] |
Definition at line 153 of file MethodFisher.h.