#include <MethodLikelihood.h>
Inheritance diagram for TMVA::MethodLikelihood:
Definition at line 59 of file MethodLikelihood.h.
TMVA::MethodLikelihood::MethodLikelihood | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | theData, | |||
const TString & | theOption = "" , |
|||
TDirectory * | theTargetDir = 0 | |||
) |
TMVA::MethodLikelihood::MethodLikelihood | ( | DataSetInfo & | theData, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = NULL | |||
) |
Definition at line 151 of file MethodLikelihood.cxx.
TMVA::MethodLikelihood::~MethodLikelihood | ( | ) | [virtual] |
Definition at line 173 of file MethodLikelihood.cxx.
References fDefaultPDFLik, fHistBgd, fHistBgd_smooth, fHistSig, fHistSig_smooth, fPDFBgd, fPDFSig, TMVA::MethodBase::GetNvar(), and NULL.
TMVA::MethodLikelihood::MethodLikelihood | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | theData, | |||
const TString & | theOption = "" , |
|||
TDirectory * | theTargetDir = 0 | |||
) |
TMVA::MethodLikelihood::MethodLikelihood | ( | DataSetInfo & | theData, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = NULL | |||
) |
virtual TMVA::MethodLikelihood::~MethodLikelihood | ( | ) | [virtual] |
Bool_t TMVA::MethodLikelihood::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | numberTargets | |||
) | [virtual] |
Implements TMVA::IMethod.
Definition at line 190 of file MethodLikelihood.cxx.
References TMVA::Types::kClassification, kFALSE, and kTRUE.
void TMVA::MethodLikelihood::Train | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 303 of file MethodLikelihood.cxx.
References TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), Endl, fHistBgd, fHistSig, TMVA::MethodBase::fInputVars, Form(), fPDFBgd, fPDFSig, TMVA::DataSet::GetEvent(), TMVA::DataSet::GetNEvents(), TMVA::MethodBase::GetNvar(), TMVA::MethodBase::GetTransformationHandler(), TMVA::Event::GetValue(), TMVA::Event::GetWeight(), TMVA::MethodBase::GetXmax(), TMVA::MethodBase::GetXmin(), TMVA::MethodBase::IgnoreEventsWithNegWeightsInTraining(), TMVA::kINFO, TMVA::kWARNING, TMVA::Configurable::Log(), TMath::Min(), nbins, TMath::Nint(), TMVA::TransformationHandler::SetTransformationReferenceClass(), TMVA::TransformationHandler::Transform(), value, xmax, and xmin.
void TMVA::MethodLikelihood::WriteWeightsToStream | ( | TFile & | rf | ) | const |
Definition at line 620 of file MethodLikelihood.cxx.
References fPDFSig, TMVA::MethodBase::GetInputVar(), and TMVA::MethodBase::GetNvar().
void TMVA::MethodLikelihood::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
Definition at line 547 of file MethodLikelihood.cxx.
References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), Endl, fPDFBgd, fPDFSig, TMVA::MethodBase::GetNvar(), TMVA::gTools(), TMVA::kFATAL, and TMVA::Configurable::Log().
void TMVA::MethodLikelihood::ReadWeightsFromStream | ( | istream & | istr | ) |
Definition at line 657 of file MethodLikelihood.cxx.
References TH1::AddDirectory(), TH1::AddDirectoryStatus(), Endl, fPDFBgd, fPDFSig, TMVA::MethodBase::GetInputVar(), TMVA::MethodBase::GetNvar(), TMVA::MethodBase::GetTrainingTMVAVersionCode(), TMVA::kINFO, and TMVA::Configurable::Log().
void TMVA::MethodLikelihood::ReadWeightsFromStream | ( | TFile & | istr | ) | [virtual] |
Reimplemented from TMVA::MethodBase.
Definition at line 679 of file MethodLikelihood.cxx.
References TH1::AddDirectory(), TH1::AddDirectoryStatus(), TMVA::MethodBase::Data(), Form(), fPDFSig, TDirectoryFile::Get(), TMVA::MethodBase::GetInputVar(), and TMVA::MethodBase::GetNvar().
void TMVA::MethodLikelihood::ReadWeightsFromXML | ( | void * | wghtnode | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 630 of file MethodLikelihood.cxx.
References TH1::AddDirectory(), TH1::AddDirectoryStatus(), Endl, fPDFBgd, fPDFSig, TMVA::Tools::GetChild(), TMVA::MethodBase::GetInputVar(), TMVA::Tools::GetNextChild(), TMVA::MethodBase::GetTrainingTMVAVersionCode(), TMVA::gTools(), TMVA::kINFO, TMVA::Configurable::Log(), and TMVA::Tools::ReadAttr().
Double_t TMVA::MethodLikelihood::GetMvaValue | ( | Double_t * | err = 0 , |
|
Double_t * | errUpper = 0 | |||
) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 419 of file MethodLikelihood.cxx.
References TMVA::MethodBase::DataInfo(), Endl, fDropVariable, fEpsilon, fPDFBgd, fPDFSig, TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetNvar(), TMVA::PDF::GetPDFHist(), TMVA::MethodBase::GetTransformationHandler(), TMVA::Event::GetValue(), TMVA::MethodBase::GetXmax(), TMVA::MethodBase::GetXmin(), hist, TMVA::kFATAL, TMVA::PDF::kSpline0, TMVA::Configurable::Log(), TMath::Max(), TMVA::MethodBase::NoErrorCalc(), p, TMVA::TransformationHandler::SetTransformationReferenceClass(), TransformLikelihoodOutput(), and x.
Referenced by CreateRanking().
void TMVA::MethodLikelihood::WriteMonitoringHistosToFile | ( | ) | const [virtual] |
Reimplemented from TMVA::MethodBase.
Definition at line 693 of file MethodLikelihood.cxx.
References TMVA::MethodBase::BaseDir(), TDirectory::cd(), TObject::Clone(), Endl, fHistBgd_smooth, fHistSig, fHistSig_smooth, TMVA::MethodBase::fInputVars, fPDFBgd, fPDFSig, TMVA::MethodBase::GetName(), TMVA::MethodBase::GetNvar(), TDirectory::GetPath(), TObject::GetTitle(), TMVA::MethodBase::GetXmax(), TMVA::MethodBase::GetXmin(), h, i, TMVA::kINFO, TMVA::Configurable::Log(), TH1F::SetBinContent(), TObject::Write(), x, xmax, and xmin.
const TMVA::Ranking * TMVA::MethodLikelihood::CreateRanking | ( | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 570 of file MethodLikelihood.cxx.
References TMVA::Ranking::AddRank(), TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), fDropVariable, TH1::Fill(), Form(), TMVA::MethodBase::fRanking, TMVA::MethodBase::GetEvent(), TMVA::DataSet::GetEvent(), GetMvaValue(), TMVA::MethodBase::GetName(), TMVA::DataSet::GetNTrainingEvents(), TMVA::MethodBase::GetNvar(), TMVA::Tools::GetSeparation(), TMVA::MethodBase::GetTransformationHandler(), TMVA::Event::GetWeight(), TMVA::gTools(), ROOT::Math::detail::sep, TMVA::TransformationHandler::SetTransformationReferenceClass(), TMVA::TransformationHandler::Transform(), and w.
void TMVA::MethodLikelihood::WriteOptionsToStream | ( | ostream & | o, | |
const TString & | prefix | |||
) | const [virtual] |
Definition at line 524 of file MethodLikelihood.cxx.
References fDefaultPDFLik, Form(), fPDFBgd, fPDFSig, prefix, and TMVA::Configurable::WriteOptionsToStream().
void TMVA::MethodLikelihood::DeclareCompatibilityOptions | ( | ) | [protected, virtual] |
Reimplemented from TMVA::MethodBase.
Definition at line 248 of file MethodLikelihood.cxx.
References TMVA::MethodBase::DeclareCompatibilityOptions(), TMVA::Configurable::DeclareOptionRef(), fAverageEvtPerBin, fAverageEvtPerBinVarB, fAverageEvtPerBinVarS, fBorderMethodString, fInterpolateString, fKDEfineFactor, fKDEiterString, fKDEtypeString, fNsmooth, fNsmoothVarB, fNsmoothVarS, TMVA::MethodBase::GetNvar(), and i.
void TMVA::MethodLikelihood::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
Definition at line 748 of file MethodLikelihood.cxx.
References TMVA::MethodBase::DataInfo(), Endl, fEpsilon, fPDFBgd, fPDFSig, fTransformLikelihoodOutput, TMVA::MethodBase::GetNvar(), TMVA::MethodBase::GetOriginalVarName(), TMVA::MethodBase::GetTransformationHandler(), TMVA::DataSetInfo::GetVariableInfo(), TMVA::VariableInfo::GetVarType(), TMVA::kFATAL, TMVA::PDF::kSpline0, and TMVA::Configurable::Log().
void TMVA::MethodLikelihood::MakeClassSpecificHeader | ( | std::ostream & | , | |
const TString & | = "" | |||
) | const [protected, virtual] |
void TMVA::MethodLikelihood::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
Definition at line 948 of file MethodLikelihood.cxx.
References TMVA::Tools::Color(), Endl, TMVA::gTools(), and TMVA::Configurable::Log().
Double_t TMVA::MethodLikelihood::TransformLikelihoodOutput | ( | Double_t | ps, | |
Double_t | pb | |||
) | const [private] |
Definition at line 501 of file MethodLikelihood.cxx.
References fEpsilon, fTransformLikelihoodOutput, and TMath::Log().
Referenced by GetMvaValue(), and ProcessOptions().
void TMVA::MethodLikelihood::Init | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 199 of file MethodLikelihood.cxx.
References fDropVariable, fHistBgd, fHistBgd_smooth, fHistSig, fHistSig_smooth, fPDFBgd, fPDFSig, and TMVA::MethodBase::GetNvar().
void TMVA::MethodLikelihood::DeclareOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 214 of file MethodLikelihood.cxx.
References TMVA::MethodBase::DataInfo(), TMVA::Configurable::DeclareOptionRef(), TMVA::PDF::DeclareOptions(), fDefaultPDFLik, Form(), fPDFSig, fTransformLikelihoodOutput, TMVA::MethodBase::GetName(), TMVA::DataSetInfo::GetNVariables(), TMVA::Configurable::GetOptions(), kFALSE, TMVA::Configurable::ParseOptions(), and TMVA::Configurable::SetOptions().
void TMVA::MethodLikelihood::ProcessOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 288 of file MethodLikelihood.cxx.
References TMVA::MethodBase::DataInfo(), fDefaultPDFLik, fPDFBgd, TMVA::DataSetInfo::GetNVariables(), TMVA::PDF::ProcessOptions(), TMVA::MethodBase::SetSignalReferenceCut(), and TransformLikelihoodOutput().
virtual Bool_t TMVA::MethodLikelihood::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | numberTargets | |||
) | [virtual] |
Implements TMVA::IMethod.
void TMVA::MethodLikelihood::Train | ( | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLikelihood::WriteWeightsToStream | ( | TFile & | rf | ) | const |
void TMVA::MethodLikelihood::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLikelihood::ReadWeightsFromStream | ( | istream & | istr | ) |
void TMVA::MethodLikelihood::ReadWeightsFromStream | ( | TFile & | istr | ) | [virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodLikelihood::ReadWeightsFromXML | ( | void * | wghtnode | ) | [virtual] |
Implements TMVA::MethodBase.
Double_t TMVA::MethodLikelihood::GetMvaValue | ( | Double_t * | err = 0 , |
|
Double_t * | errUpper = 0 | |||
) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLikelihood::WriteMonitoringHistosToFile | ( | ) | const [virtual] |
Reimplemented from TMVA::MethodBase.
const Ranking* TMVA::MethodLikelihood::CreateRanking | ( | ) | [virtual] |
Implements TMVA::MethodBase.
virtual void TMVA::MethodLikelihood::WriteOptionsToStream | ( | ostream & | o, | |
const TString & | prefix | |||
) | const [virtual] |
void TMVA::MethodLikelihood::DeclareCompatibilityOptions | ( | ) | [protected, virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodLikelihood::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodLikelihood::MakeClassSpecificHeader | ( | std::ostream & | , | |
const TString & | = "" | |||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodLikelihood::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
Double_t TMVA::MethodLikelihood::TransformLikelihoodOutput | ( | Double_t | ps, | |
Double_t | pb | |||
) | const [private] |
void TMVA::MethodLikelihood::Init | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLikelihood::DeclareOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodLikelihood::ProcessOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
Double_t TMVA::MethodLikelihood::fEpsilon [private] |
Definition at line 125 of file MethodLikelihood.h.
Referenced by GetMvaValue(), MakeClassSpecific(), and TransformLikelihoodOutput().
Definition at line 126 of file MethodLikelihood.h.
Referenced by DeclareOptions(), MakeClassSpecific(), and TransformLikelihoodOutput().
Int_t TMVA::MethodLikelihood::fDropVariable [private] |
Definition at line 128 of file MethodLikelihood.h.
Referenced by CreateRanking(), GetMvaValue(), and Init().
std::vector<TH1*>* TMVA::MethodLikelihood::fHistSig [private] |
Definition at line 130 of file MethodLikelihood.h.
Referenced by Init(), Train(), WriteMonitoringHistosToFile(), and ~MethodLikelihood().
std::vector<TH1*>* TMVA::MethodLikelihood::fHistBgd [private] |
Definition at line 131 of file MethodLikelihood.h.
Referenced by Init(), Train(), and ~MethodLikelihood().
std::vector<TH1*>* TMVA::MethodLikelihood::fHistSig_smooth [private] |
Definition at line 132 of file MethodLikelihood.h.
Referenced by Init(), WriteMonitoringHistosToFile(), and ~MethodLikelihood().
std::vector<TH1*>* TMVA::MethodLikelihood::fHistBgd_smooth [private] |
Definition at line 133 of file MethodLikelihood.h.
Referenced by Init(), WriteMonitoringHistosToFile(), and ~MethodLikelihood().
PDF* TMVA::MethodLikelihood::fDefaultPDFLik [private] |
Definition at line 135 of file MethodLikelihood.h.
Referenced by DeclareOptions(), ProcessOptions(), WriteOptionsToStream(), and ~MethodLikelihood().
std::vector<PDF*>* TMVA::MethodLikelihood::fPDFSig [private] |
Definition at line 136 of file MethodLikelihood.h.
Referenced by AddWeightsXMLTo(), DeclareOptions(), GetMvaValue(), Init(), MakeClassSpecific(), ReadWeightsFromStream(), ReadWeightsFromXML(), Train(), WriteMonitoringHistosToFile(), WriteOptionsToStream(), WriteWeightsToStream(), and ~MethodLikelihood().
std::vector<PDF*>* TMVA::MethodLikelihood::fPDFBgd [private] |
Definition at line 137 of file MethodLikelihood.h.
Referenced by AddWeightsXMLTo(), GetMvaValue(), Init(), MakeClassSpecific(), ProcessOptions(), ReadWeightsFromStream(), ReadWeightsFromXML(), Train(), WriteMonitoringHistosToFile(), WriteOptionsToStream(), and ~MethodLikelihood().
Int_t TMVA::MethodLikelihood::fNsmooth [private] |
Int_t* TMVA::MethodLikelihood::fNsmoothVarS [private] |
Int_t* TMVA::MethodLikelihood::fNsmoothVarB [private] |
std::vector<TH1*>* TMVA::MethodLikelihood::fHistSig [private] |
Definition at line 130 of file MethodLikelihood.h.
std::vector<TH1*>* TMVA::MethodLikelihood::fHistBgd [private] |
Definition at line 131 of file MethodLikelihood.h.
std::vector<TH1*>* TMVA::MethodLikelihood::fHistSig_smooth [private] |
Definition at line 132 of file MethodLikelihood.h.
std::vector<TH1*>* TMVA::MethodLikelihood::fHistBgd_smooth [private] |
Definition at line 133 of file MethodLikelihood.h.
PDF* TMVA::MethodLikelihood::fDefaultPDFLik [private] |
Definition at line 135 of file MethodLikelihood.h.
std::vector<PDF*>* TMVA::MethodLikelihood::fPDFSig [private] |
Definition at line 136 of file MethodLikelihood.h.
std::vector<PDF*>* TMVA::MethodLikelihood::fPDFBgd [private] |
Definition at line 137 of file MethodLikelihood.h.
Int_t* TMVA::MethodLikelihood::fNsmoothVarS [private] |
Definition at line 143 of file MethodLikelihood.h.
Int_t* TMVA::MethodLikelihood::fNsmoothVarB [private] |
Definition at line 144 of file MethodLikelihood.h.
Definition at line 146 of file MethodLikelihood.h.
Definition at line 147 of file MethodLikelihood.h.
Definition at line 152 of file MethodLikelihood.h.