TMVA::MethodTMlpANN Class Reference

#include <MethodTMlpANN.h>

Inheritance diagram for TMVA::MethodTMlpANN:

TMVA::MethodBase TMVA::MethodBase TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod List of all members.

Public Member Functions

 MethodTMlpANN (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="3000:N-1:N-2", TDirectory *theTargetDir=0)
 MethodTMlpANN (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodTMlpANN (void)
virtual Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
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)
void SetHiddenLayer (TString hiddenlayer="")
const RankingCreateRanking ()
void MakeClass (const TString &classFileName=TString("")) const
 MethodTMlpANN (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="3000:N-1:N-2", TDirectory *theTargetDir=0)
 MethodTMlpANN (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodTMlpANN (void)
virtual Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
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)
void SetHiddenLayer (TString hiddenlayer="")
const RankingCreateRanking ()
void MakeClass (const TString &classFileName=TString("")) const

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 CreateMLPOptions (TString)
void Init (void)
void DeclareOptions ()
void ProcessOptions ()
void CreateMLPOptions (TString)
void Init (void)

Private Attributes

TString fLayerSpec
TMultiLayerPerceptronfMLP
TTreefLocalTrainingTree
TString fHiddenLayer
Int_t fNcycles
Double_t fValidationFraction
TString fMLPBuildOptions
TString fLearningMethod
TMultiLayerPerceptronfMLP
TTreefLocalTrainingTree

Detailed Description

Definition at line 51 of file MethodTMlpANN.h.


Constructor & Destructor Documentation

TMVA::MethodTMlpANN::MethodTMlpANN ( const TString jobName,
const TString methodTitle,
DataSetInfo theData,
const TString theOption = "3000:N-1:N-2",
TDirectory theTargetDir = 0 
)

TMVA::MethodTMlpANN::MethodTMlpANN ( DataSetInfo theData,
const TString theWeightFile,
TDirectory theTargetDir = NULL 
)

Definition at line 97 of file MethodTMlpANN.cxx.

TMVA::MethodTMlpANN::~MethodTMlpANN ( void   )  [virtual]

Definition at line 126 of file MethodTMlpANN.cxx.

References fMLP.

TMVA::MethodTMlpANN::MethodTMlpANN ( const TString jobName,
const TString methodTitle,
DataSetInfo theData,
const TString theOption = "3000:N-1:N-2",
TDirectory theTargetDir = 0 
)

TMVA::MethodTMlpANN::MethodTMlpANN ( DataSetInfo theData,
const TString theWeightFile,
TDirectory theTargetDir = NULL 
)

virtual TMVA::MethodTMlpANN::~MethodTMlpANN ( void   )  [virtual]


Member Function Documentation

Bool_t TMVA::MethodTMlpANN::HasAnalysisType ( Types::EAnalysisType  type,
UInt_t  numberClasses,
UInt_t  numberTargets 
) [virtual]

Implements TMVA::IMethod.

Definition at line 110 of file MethodTMlpANN.cxx.

References TMVA::Types::kClassification, kFALSE, and kTRUE.

void TMVA::MethodTMlpANN::Train ( void   )  [virtual]

Implements TMVA::MethodBase.

Definition at line 235 of file MethodTMlpANN.cxx.

References TTree::Branch(), TString::Data(), TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), Endl, TTree::Fill(), fLearningMethod, fMLP, fMLPBuildOptions, fNcycles, Form(), fValidationFraction, TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetInternalVarName(), TMVA::DataSet::GetNEvents(), TMVA::DataSet::GetNEvtSigTrain(), TMVA::MethodBase::GetNvar(), TMVA::Event::GetValue(), i, TMVA::DataSetInfo::IsSignal(), TMultiLayerPerceptron::kBatch, TMultiLayerPerceptron::kBFGS, TMVA::kFATAL, TMultiLayerPerceptron::kFletcherReeves, TMVA::kINFO, TMultiLayerPerceptron::kRibierePolak, TMultiLayerPerceptron::kSteepestDescent, TMultiLayerPerceptron::kStochastic, TMVA::Configurable::Log(), TMultiLayerPerceptron::SetEventWeight(), TMultiLayerPerceptron::SetLearningMethod(), TString::ToLower(), TMultiLayerPerceptron::Train(), and type.

void TMVA::MethodTMlpANN::AddWeightsXMLTo ( void *  parent  )  const [virtual]

Implements TMVA::MethodBase.

Definition at line 333 of file MethodTMlpANN.cxx.

References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), TMVA::Tools::AddRawLine(), TString::Data(), data, dummy, TMultiLayerPerceptron::DumpWeights(), fMLP, fMLPBuildOptions, TMVA::gTools(), TString::kLeading, and NULL.

void TMVA::MethodTMlpANN::ReadWeightsFromStream ( istream &  istr  ) 

Definition at line 428 of file MethodTMlpANN.cxx.

References TTree::Branch(), TDirectory::cd(), d, TString::Data(), TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), Endl, fMLP, fMLPBuildOptions, Form(), TMVA::VariableInfo::GetLabel(), TMVA::DataSet::GetNVariables(), TMVA::DataSetInfo::GetVariableInfo(), gROOT, TMVA::kINFO, TMultiLayerPerceptron::LoadWeights(), TMVA::Configurable::Log(), and type.

void TMVA::MethodTMlpANN::ReadWeightsFromXML ( void *  wghtnode  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 367 of file MethodTMlpANN.cxx.

References TTree::Branch(), TDirectory::cd(), d, TString::Data(), TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), fMLP, fMLPBuildOptions, Form(), TMVA::Tools::GetChild(), TMVA::Tools::GetContent(), TMVA::VariableInfo::GetInternalName(), TMVA::MethodBase::GetName(), TMVA::Tools::GetNextChild(), TMVA::DataSet::GetNVariables(), TMVA::DataSetInfo::GetVariableInfo(), gROOT, TMVA::gTools(), TMultiLayerPerceptron::LoadWeights(), TMVA::Tools::ReadAttr(), and type.

Double_t TMVA::MethodTMlpANN::GetMvaValue ( Double_t err = 0,
Double_t errUpper = 0 
) [virtual]

Implements TMVA::MethodBase.

Definition at line 218 of file MethodTMlpANN.cxx.

References d, TMVA::MethodBase::Data(), TMultiLayerPerceptron::Evaluate(), fMLP, TMVA::MethodBase::GetEvent(), TMVA::DataSet::GetNVariables(), TMVA::Event::GetValue(), and TMVA::MethodBase::NoErrorCalc().

void TMVA::MethodTMlpANN::SetHiddenLayer ( TString  hiddenlayer = ""  )  [inline]

Definition at line 87 of file MethodTMlpANN.h.

References fHiddenLayer.

const Ranking* TMVA::MethodTMlpANN::CreateRanking (  )  [inline, virtual]

Implements TMVA::MethodBase.

Definition at line 90 of file MethodTMlpANN.h.

void TMVA::MethodTMlpANN::MakeClass ( const TString classFileName = TString("")  )  const [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 460 of file MethodTMlpANN.cxx.

References TString::Data(), Endl, TMultiLayerPerceptron::Export(), fMLP, TMVA::MethodBase::GetJobName(), TMVA::MethodBase::GetMethodName(), TMVA::MethodBase::GetWeightFileDir(), TMVA::kINFO, and TMVA::Configurable::Log().

void TMVA::MethodTMlpANN::MakeClassSpecific ( std::ostream &  ,
const TString  
) const [protected, virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 477 of file MethodTMlpANN.cxx.

void TMVA::MethodTMlpANN::GetHelpMessage (  )  const [protected, virtual]

Implements TMVA::IMethod.

Definition at line 484 of file MethodTMlpANN.cxx.

References TMVA::Tools::Color(), Endl, TMVA::gConfig(), TMVA::gTools(), and TMVA::Configurable::Log().

void TMVA::MethodTMlpANN::DeclareOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 176 of file MethodTMlpANN.cxx.

References TMVA::Configurable::AddPreDefVal(), TMVA::Configurable::DeclareOptionRef(), fLayerSpec, fLearningMethod, fNcycles, and fValidationFraction.

void TMVA::MethodTMlpANN::ProcessOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 204 of file MethodTMlpANN.cxx.

References CreateMLPOptions(), Endl, fLayerSpec, TMVA::MethodBase::GetMethodTypeName(), TMVA::MethodBase::IgnoreEventsWithNegWeightsInTraining(), TMVA::kFATAL, and TMVA::Configurable::Log().

void TMVA::MethodTMlpANN::CreateMLPOptions ( TString   )  [private]

Definition at line 133 of file MethodTMlpANN.cxx.

References TString::Chop(), Endl, EnforceNormalization__, fHiddenLayer, TString::First(), fMLPBuildOptions, fNcycles, Form(), TMVA::MethodBase::GetNvar(), TMVA::kINFO, TString::Length(), TMVA::Configurable::Log(), and TString::Remove().

Referenced by ProcessOptions().

void TMVA::MethodTMlpANN::Init ( void   )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 120 of file MethodTMlpANN.cxx.

virtual Bool_t TMVA::MethodTMlpANN::HasAnalysisType ( Types::EAnalysisType  type,
UInt_t  numberClasses,
UInt_t  numberTargets 
) [virtual]

Implements TMVA::IMethod.

void TMVA::MethodTMlpANN::Train ( void   )  [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodTMlpANN::AddWeightsXMLTo ( void *  parent  )  const [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodTMlpANN::ReadWeightsFromStream ( istream &  istr  ) 

void TMVA::MethodTMlpANN::ReadWeightsFromXML ( void *  wghtnode  )  [virtual]

Implements TMVA::MethodBase.

Double_t TMVA::MethodTMlpANN::GetMvaValue ( Double_t err = 0,
Double_t errUpper = 0 
) [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodTMlpANN::SetHiddenLayer ( TString  hiddenlayer = ""  )  [inline]

Definition at line 87 of file MethodTMlpANN.h.

References fHiddenLayer.

const Ranking* TMVA::MethodTMlpANN::CreateRanking (  )  [inline, virtual]

Implements TMVA::MethodBase.

Definition at line 90 of file MethodTMlpANN.h.

void TMVA::MethodTMlpANN::MakeClass ( const TString classFileName = TString("")  )  const [virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodTMlpANN::MakeClassSpecific ( std::ostream &  ,
const TString  
) const [protected, virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodTMlpANN::GetHelpMessage (  )  const [protected, virtual]

Implements TMVA::IMethod.

void TMVA::MethodTMlpANN::DeclareOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

void TMVA::MethodTMlpANN::ProcessOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

void TMVA::MethodTMlpANN::CreateMLPOptions ( TString   )  [private]

void TMVA::MethodTMlpANN::Init ( void   )  [private, virtual]

Implements TMVA::MethodBase.


Member Data Documentation

TString TMVA::MethodTMlpANN::fLayerSpec [private]

Definition at line 112 of file MethodTMlpANN.h.

Referenced by DeclareOptions(), and ProcessOptions().

TMultiLayerPerceptron* TMVA::MethodTMlpANN::fMLP [private]

Definition at line 114 of file MethodTMlpANN.h.

Referenced by AddWeightsXMLTo(), GetMvaValue(), MakeClass(), ReadWeightsFromStream(), ReadWeightsFromXML(), Train(), and ~MethodTMlpANN().

TTree* TMVA::MethodTMlpANN::fLocalTrainingTree [private]

Definition at line 115 of file MethodTMlpANN.h.

TString TMVA::MethodTMlpANN::fHiddenLayer [private]

Definition at line 117 of file MethodTMlpANN.h.

Referenced by CreateMLPOptions(), and SetHiddenLayer().

Int_t TMVA::MethodTMlpANN::fNcycles [private]

Definition at line 118 of file MethodTMlpANN.h.

Referenced by CreateMLPOptions(), DeclareOptions(), and Train().

Double_t TMVA::MethodTMlpANN::fValidationFraction [private]

Definition at line 119 of file MethodTMlpANN.h.

Referenced by DeclareOptions(), and Train().

TString TMVA::MethodTMlpANN::fMLPBuildOptions [private]

Definition at line 120 of file MethodTMlpANN.h.

Referenced by AddWeightsXMLTo(), CreateMLPOptions(), ReadWeightsFromStream(), ReadWeightsFromXML(), and Train().

TString TMVA::MethodTMlpANN::fLearningMethod [private]

Definition at line 122 of file MethodTMlpANN.h.

Referenced by DeclareOptions(), and Train().

TMultiLayerPerceptron* TMVA::MethodTMlpANN::fMLP [private]

Definition at line 114 of file MethodTMlpANN.h.

TTree* TMVA::MethodTMlpANN::fLocalTrainingTree [private]

Definition at line 115 of file MethodTMlpANN.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:29 2011 for ROOT_528-00b_version by  doxygen 1.5.1