#include <MethodCFMlpANN.h>
Inheritance diagram for TMVA::MethodCFMlpANN:
Public Member Functions | |
MethodCFMlpANN (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="3000:N-1:N-2", TDirectory *theTargetDir=0) | |
MethodCFMlpANN (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL) | |
virtual | ~MethodCFMlpANN (void) |
virtual Bool_t | HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t) |
void | Train (void) |
void | AddWeightsXMLTo (void *parent) const |
void | ReadWeightsFromStream (istream &istr) |
void | ReadWeightsFromXML (void *wghtnode) |
Double_t | GetMvaValue (Double_t *err=0, Double_t *errUpper=0) |
Double_t | GetData (Int_t isel, Int_t ivar) const |
Int_t | GetClass (Int_t ivar) const |
const Ranking * | CreateRanking () |
MethodCFMlpANN (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="3000:N-1:N-2", TDirectory *theTargetDir=0) | |
MethodCFMlpANN (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL) | |
virtual | ~MethodCFMlpANN (void) |
virtual Bool_t | HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t) |
void | Train (void) |
void | AddWeightsXMLTo (void *parent) const |
void | ReadWeightsFromStream (istream &istr) |
void | ReadWeightsFromXML (void *wghtnode) |
Double_t | GetMvaValue (Double_t *err=0, Double_t *errUpper=0) |
Double_t | GetData (Int_t isel, Int_t ivar) const |
Int_t | GetClass (Int_t ivar) const |
const Ranking * | CreateRanking () |
Static Public Member Functions | |
static MethodCFMlpANN * | This (void) |
static MethodCFMlpANN * | This (void) |
Protected Member Functions | |
void | MakeClassSpecific (std::ostream &, const TString &) const |
void | MakeClassSpecificHeader (std::ostream &, const TString &="") const |
void | GetHelpMessage () const |
Int_t | DataInterface (Double_t *, Double_t *, Int_t *, Int_t *, Int_t *, Int_t *, Double_t *, Int_t *, Int_t *) |
void | MakeClassSpecific (std::ostream &, const TString &) const |
void | MakeClassSpecificHeader (std::ostream &, const TString &="") const |
void | GetHelpMessage () const |
Int_t | DataInterface (Double_t *, Double_t *, Int_t *, Int_t *, Int_t *, Int_t *, Double_t *, Int_t *, Int_t *) |
Private Member Functions | |
void | PrintWeights (std::ostream &o) const |
void | DeclareOptions () |
void | ProcessOptions () |
Double_t | EvalANN (std::vector< Double_t > &, Bool_t &isOK) |
void | NN_ava (Double_t *) |
Double_t | NN_fonc (Int_t, Double_t) const |
void | Init (void) |
void | PrintWeights (std::ostream &o) const |
void | DeclareOptions () |
void | ProcessOptions () |
Double_t | EvalANN (std::vector< Double_t > &, Bool_t &isOK) |
void | NN_ava (Double_t *) |
Double_t | NN_fonc (Int_t, Double_t) const |
void | Init (void) |
Private Attributes | |
TMatrixF * | fData |
std::vector< Int_t > * | fClass |
Int_t | fNlayers |
Int_t | fNcycles |
Int_t * | fNodes |
Double_t ** | fYNN |
TString | fLayerSpec |
TMatrixF * | fData |
std::vector< Int_t > * | fClass |
Int_t * | fNodes |
Double_t ** | fYNN |
Static Private Attributes | |
static MethodCFMlpANN * | fgThis |
static MethodCFMlpANN * | fgThis |
Definition at line 102 of file MethodCFMlpANN.h.
TMVA::MethodCFMlpANN::MethodCFMlpANN | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | theData, | |||
const TString & | theOption = "3000:N-1:N-2" , |
|||
TDirectory * | theTargetDir = 0 | |||
) |
Definition at line 92 of file MethodCFMlpANN.cxx.
References TMVA::Configurable::Log(), and TMVA::MethodCFMlpANN_Utils::SetLogger().
TMVA::MethodCFMlpANN::MethodCFMlpANN | ( | DataSetInfo & | theData, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = NULL | |||
) |
Definition at line 138 of file MethodCFMlpANN.cxx.
TMVA::MethodCFMlpANN::~MethodCFMlpANN | ( | void | ) | [virtual] |
TMVA::MethodCFMlpANN::MethodCFMlpANN | ( | const TString & | jobName, | |
const TString & | methodTitle, | |||
DataSetInfo & | theData, | |||
const TString & | theOption = "3000:N-1:N-2" , |
|||
TDirectory * | theTargetDir = 0 | |||
) |
TMVA::MethodCFMlpANN::MethodCFMlpANN | ( | DataSetInfo & | theData, | |
const TString & | theWeightFile, | |||
TDirectory * | theTargetDir = NULL | |||
) |
virtual TMVA::MethodCFMlpANN::~MethodCFMlpANN | ( | void | ) | [virtual] |
Bool_t TMVA::MethodCFMlpANN::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | ||||
) | [virtual] |
Implements TMVA::IMethod.
Definition at line 153 of file MethodCFMlpANN.cxx.
References TMVA::Types::kClassification, kFALSE, and kTRUE.
void TMVA::MethodCFMlpANN::Train | ( | void | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 273 of file MethodCFMlpANN.cxx.
References TMVA::MethodBase::Data(), Endl, fNcycles, fNlayers, fNodes, fYNN, TMVA::MethodBase::GetNvar(), i, TMVA::kWARNING, TMVA::Configurable::Log(), ntest, TMVA::MethodCFMlpANN_Utils::nvar, and TMVA::MethodCFMlpANN_Utils::Train_nn().
void TMVA::MethodCFMlpANN::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
Definition at line 521 of file MethodCFMlpANN.cxx.
References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), TMVA::Tools::AddRawLine(), TMVA::MethodCFMlpANN_Utils::fDel_1, TMVA::MethodCFMlpANN_Utils::fNeur_1, TMVA::MethodCFMlpANN_Utils::fParam_1, TMVA::MethodCFMlpANN_Utils::fVarn_1, TMVA::gTools(), i, n, TMVA::MethodCFMlpANN_Utils::neuron, NULL, s, TMVA::MethodCFMlpANN_Utils::temp, TMVA::MethodCFMlpANN_Utils::W_ref(), and TMVA::MethodCFMlpANN_Utils::Ww_ref().
void TMVA::MethodCFMlpANN::ReadWeightsFromStream | ( | istream & | istr | ) |
Definition at line 397 of file MethodCFMlpANN.cxx.
References Endl, TMVA::MethodCFMlpANN_Utils::fDel_1, TMVA::MethodCFMlpANN_Utils::fNeur_1, fNlayers, for(), TMVA::MethodCFMlpANN_Utils::fParam_1, TMVA::MethodCFMlpANN_Utils::fVarn_1, fYNN, TMVA::MethodBase::GetNvar(), i, if(), j, k, TMVA::kFATAL, TMVA::MethodCFMlpANN_Utils::lclass, TMVA::Configurable::Log(), TMVA::MethodCFMlpANN_Utils::W_ref(), and TMVA::MethodCFMlpANN_Utils::Ww_ref().
void TMVA::MethodCFMlpANN::ReadWeightsFromXML | ( | void * | wghtnode | ) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 565 of file MethodCFMlpANN.cxx.
References TMVA::MethodCFMlpANN_Utils::fDel_1, TMVA::MethodCFMlpANN_Utils::fNeur_1, fNlayers, TMVA::MethodCFMlpANN_Utils::fParam_1, TMVA::MethodCFMlpANN_Utils::fVarn_1, fYNN, TMVA::Tools::GetChild(), TMVA::Tools::GetContent(), TMVA::Tools::GetNextChild(), TMVA::MethodBase::GetNvar(), TMVA::gTools(), i, if(), TMVA::MethodCFMlpANN_Utils::neuron, NULL, TMVA::Tools::ReadAttr(), t, TMVA::MethodCFMlpANN_Utils::temp, TMVA::MethodCFMlpANN_Utils::W_ref(), and TMVA::MethodCFMlpANN_Utils::Ww_ref().
Double_t TMVA::MethodCFMlpANN::GetMvaValue | ( | Double_t * | err = 0 , |
|
Double_t * | errUpper = 0 | |||
) | [virtual] |
Implements TMVA::MethodBase.
Definition at line 307 of file MethodCFMlpANN.cxx.
References Endl, EvalANN(), TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetNvar(), TMVA::Event::GetValue(), TMVA::kFATAL, kTRUE, TMVA::Configurable::Log(), and TMVA::MethodBase::NoErrorCalc().
TMVA::MethodCFMlpANN * TMVA::MethodCFMlpANN::This | ( | void | ) | [static] |
Definition at line 674 of file MethodCFMlpANN.cxx.
References fgThis.
Referenced by DataInterface(), G__G__TMVA1_673_0_11(), and G__setup_memfuncTMVAcLcLMethodCFMlpANN().
const Ranking* TMVA::MethodCFMlpANN::CreateRanking | ( | ) | [inline, virtual] |
void TMVA::MethodCFMlpANN::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
void TMVA::MethodCFMlpANN::MakeClassSpecificHeader | ( | std::ostream & | , | |
const TString & | = "" | |||
) | const [protected, virtual] |
void TMVA::MethodCFMlpANN::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
Definition at line 693 of file MethodCFMlpANN.cxx.
References TMVA::Tools::Color(), Endl, TMVA::gTools(), and TMVA::Configurable::Log().
Int_t TMVA::MethodCFMlpANN::DataInterface | ( | Double_t * | , | |
Double_t * | , | |||
Int_t * | , | |||
Int_t * | , | |||
Int_t * | , | |||
Int_t * | , | |||
Double_t * | , | |||
Int_t * | , | |||
Int_t * | ||||
) | [protected, virtual] |
Implements TMVA::MethodCFMlpANN_Utils.
Definition at line 488 of file MethodCFMlpANN.cxx.
References Endl, GetClass(), GetData(), TMVA::MethodBase::GetNvar(), int, TMVA::kFATAL, TMVA::Configurable::Log(), and This().
void TMVA::MethodCFMlpANN::PrintWeights | ( | std::ostream & | o | ) | const [private] |
Definition at line 613 of file MethodCFMlpANN.cxx.
References TMVA::MethodCFMlpANN_Utils::fDel_1, TMVA::MethodCFMlpANN_Utils::fNeur_1, for(), TMVA::MethodCFMlpANN_Utils::fParam_1, TMVA::MethodCFMlpANN_Utils::fVarn_1, i, j, k, TMVA::MethodCFMlpANN_Utils::W_ref(), and TMVA::MethodCFMlpANN_Utils::Ww_ref().
void TMVA::MethodCFMlpANN::DeclareOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 161 of file MethodCFMlpANN.cxx.
References TMVA::Configurable::DeclareOptionRef(), fLayerSpec, and fNcycles.
void TMVA::MethodCFMlpANN::ProcessOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 172 of file MethodCFMlpANN.cxx.
References TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), Endl, fClass, fData, TString::First(), fLayerSpec, fNcycles, fNlayers, fNodes, TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetMethodTypeName(), TMVA::DataSet::GetNTrainingEvents(), TMVA::MethodBase::GetNvar(), i, TMVA::MethodBase::IgnoreEventsWithNegWeightsInTraining(), TMVA::DataSetInfo::IsSignal(), TMVA::kFATAL, TMVA::kINFO, TString::Length(), and TMVA::Configurable::Log().
Referenced by GetMvaValue().
void TMVA::MethodCFMlpANN::NN_ava | ( | Double_t * | ) | [private] |
Definition at line 362 of file MethodCFMlpANN.cxx.
References TMVA::MethodCFMlpANN_Utils::fNeur_1, for(), TMVA::MethodCFMlpANN_Utils::fParam_1, fYNN, j, k, NN_fonc(), TMVA::MethodCFMlpANN_Utils::W_ref(), TMVA::MethodCFMlpANN_Utils::Ww_ref(), and TMVA::MethodCFMlpANN_Utils::x.
Definition at line 381 of file MethodCFMlpANN.cxx.
References TMath::Exp(), and TMVA::MethodCFMlpANN_Utils::fDel_1.
Referenced by NN_ava().
void TMVA::MethodCFMlpANN::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
Definition at line 243 of file MethodCFMlpANN.cxx.
References fgThis, kTRUE, and TMVA::MethodBase::SetNormalised().
virtual Bool_t TMVA::MethodCFMlpANN::HasAnalysisType | ( | Types::EAnalysisType | type, | |
UInt_t | numberClasses, | |||
UInt_t | ||||
) | [virtual] |
Implements TMVA::IMethod.
void TMVA::MethodCFMlpANN::Train | ( | void | ) | [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodCFMlpANN::AddWeightsXMLTo | ( | void * | parent | ) | const [virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodCFMlpANN::ReadWeightsFromStream | ( | istream & | istr | ) |
void TMVA::MethodCFMlpANN::ReadWeightsFromXML | ( | void * | wghtnode | ) | [virtual] |
Implements TMVA::MethodBase.
Double_t TMVA::MethodCFMlpANN::GetMvaValue | ( | Double_t * | err = 0 , |
|
Double_t * | errUpper = 0 | |||
) | [virtual] |
Implements TMVA::MethodBase.
static MethodCFMlpANN* TMVA::MethodCFMlpANN::This | ( | void | ) | [static] |
const Ranking* TMVA::MethodCFMlpANN::CreateRanking | ( | ) | [inline, virtual] |
void TMVA::MethodCFMlpANN::MakeClassSpecific | ( | std::ostream & | , | |
const TString & | ||||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodCFMlpANN::MakeClassSpecificHeader | ( | std::ostream & | , | |
const TString & | = "" | |||
) | const [protected, virtual] |
Reimplemented from TMVA::MethodBase.
void TMVA::MethodCFMlpANN::GetHelpMessage | ( | ) | const [protected, virtual] |
Implements TMVA::IMethod.
Int_t TMVA::MethodCFMlpANN::DataInterface | ( | Double_t * | , | |
Double_t * | , | |||
Int_t * | , | |||
Int_t * | , | |||
Int_t * | , | |||
Int_t * | , | |||
Double_t * | , | |||
Int_t * | , | |||
Int_t * | ||||
) | [protected, virtual] |
Implements TMVA::MethodCFMlpANN_Utils.
void TMVA::MethodCFMlpANN::PrintWeights | ( | std::ostream & | o | ) | const [private] |
void TMVA::MethodCFMlpANN::DeclareOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodCFMlpANN::ProcessOptions | ( | ) | [private, virtual] |
Implements TMVA::MethodBase.
void TMVA::MethodCFMlpANN::NN_ava | ( | Double_t * | ) | [private] |
void TMVA::MethodCFMlpANN::Init | ( | void | ) | [private, virtual] |
Implements TMVA::MethodBase.
TMVA::MethodCFMlpANN * TMVA::MethodCFMlpANN::fgThis [static, private] |
TMatrixF* TMVA::MethodCFMlpANN::fData [private] |
Definition at line 169 of file MethodCFMlpANN.h.
Referenced by GetData(), ProcessOptions(), and ~MethodCFMlpANN().
std::vector<Int_t>* TMVA::MethodCFMlpANN::fClass [private] |
Definition at line 170 of file MethodCFMlpANN.h.
Referenced by GetClass(), ProcessOptions(), and ~MethodCFMlpANN().
Int_t TMVA::MethodCFMlpANN::fNlayers [private] |
Definition at line 172 of file MethodCFMlpANN.h.
Referenced by ProcessOptions(), ReadWeightsFromStream(), ReadWeightsFromXML(), Train(), and ~MethodCFMlpANN().
Int_t TMVA::MethodCFMlpANN::fNcycles [private] |
Definition at line 173 of file MethodCFMlpANN.h.
Referenced by DeclareOptions(), ProcessOptions(), and Train().
Int_t* TMVA::MethodCFMlpANN::fNodes [private] |
Definition at line 174 of file MethodCFMlpANN.h.
Referenced by ProcessOptions(), Train(), and ~MethodCFMlpANN().
Double_t** TMVA::MethodCFMlpANN::fYNN [private] |
Definition at line 177 of file MethodCFMlpANN.h.
Referenced by NN_ava(), ReadWeightsFromStream(), ReadWeightsFromXML(), Train(), and ~MethodCFMlpANN().
TString TMVA::MethodCFMlpANN::fLayerSpec [private] |
Definition at line 178 of file MethodCFMlpANN.h.
Referenced by DeclareOptions(), and ProcessOptions().
MethodCFMlpANN* TMVA::MethodCFMlpANN::fgThis [static, private] |
Definition at line 166 of file MethodCFMlpANN.h.
TMatrixF* TMVA::MethodCFMlpANN::fData [private] |
Definition at line 169 of file MethodCFMlpANN.h.
std::vector<Int_t>* TMVA::MethodCFMlpANN::fClass [private] |
Definition at line 170 of file MethodCFMlpANN.h.
Int_t* TMVA::MethodCFMlpANN::fNodes [private] |
Definition at line 174 of file MethodCFMlpANN.h.
Double_t** TMVA::MethodCFMlpANN::fYNN [private] |
Definition at line 177 of file MethodCFMlpANN.h.