TMVA::MethodANNBase Class Reference

#include <MethodANNBase.h>

Inheritance diagram for TMVA::MethodANNBase:

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

Public Types

enum  EEstimator
enum  EEstimator

Public Member Functions

 MethodANNBase (const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &theData, const TString &theOption, TDirectory *theTargetDir)
 MethodANNBase (Types::EMVA methodType, DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir)
virtual ~MethodANNBase ()
void InitANNBase ()
void SetActivation (TActivation *activation)
void SetNeuronInputCalculator (TNeuronInput *inputCalculator)
virtual void Train ()=0
virtual void PrintNetwork () const
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromXML (void *wghtnode)
virtual void ReadWeightsFromStream (istream &istr)
virtual Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
virtual const std::vector<
Float_t > & 
GetRegressionValues ()
virtual const std::vector<
Float_t > & 
GetMulticlassValues ()
virtual void WriteMonitoringHistosToFile () const
const RankingCreateRanking ()
virtual void DeclareOptions ()
virtual void ProcessOptions ()
Bool_t Debug () const
 MethodANNBase (const TString &jobName, Types::EMVA methodType, const TString &methodTitle, DataSetInfo &theData, const TString &theOption, TDirectory *theTargetDir)
 MethodANNBase (Types::EMVA methodType, DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir)
virtual ~MethodANNBase ()
void InitANNBase ()
void SetActivation (TActivation *activation)
void SetNeuronInputCalculator (TNeuronInput *inputCalculator)
virtual void Train ()=0
virtual void PrintNetwork () const
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromXML (void *wghtnode)
virtual void ReadWeightsFromStream (istream &istr)
virtual Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
virtual const std::vector<
Float_t > & 
GetRegressionValues ()
virtual const std::vector<
Float_t > & 
GetMulticlassValues ()
virtual void WriteMonitoringHistosToFile () const
const RankingCreateRanking ()
virtual void DeclareOptions ()
virtual void ProcessOptions ()
Bool_t Debug () const

Protected Member Functions

virtual void MakeClassSpecific (std::ostream &, const TString &) const
std::vector< Int_t > * ParseLayoutString (TString layerSpec)
virtual void BuildNetwork (std::vector< Int_t > *layout, std::vector< Double_t > *weights=NULL, Bool_t fromFile=kFALSE)
void ForceNetworkInputs (const Event *ev, Int_t ignoreIndex=-1)
Double_t GetNetworkOutput ()
void PrintMessage (TString message, Bool_t force=kFALSE) const
void ForceNetworkCalculations ()
void WaitForKeyboard ()
Int_t NumCycles ()
TNeuronGetInputNeuron (Int_t index)
TNeuronGetOutputNeuron (Int_t index=0)
void CreateWeightMonitoringHists (const TString &bulkname, std::vector< TH1 * > *hv=0) const
virtual void MakeClassSpecific (std::ostream &, const TString &) const
std::vector< Int_t > * ParseLayoutString (TString layerSpec)
virtual void BuildNetwork (std::vector< Int_t > *layout, std::vector< Double_t > *weights=NULL, Bool_t fromFile=kFALSE)
void ForceNetworkInputs (const Event *ev, Int_t ignoreIndex=-1)
Double_t GetNetworkOutput ()
void PrintMessage (TString message, Bool_t force=kFALSE) const
void ForceNetworkCalculations ()
void WaitForKeyboard ()
Int_t NumCycles ()
TNeuronGetInputNeuron (Int_t index)
TNeuronGetOutputNeuron (Int_t index=0)
void CreateWeightMonitoringHists (const TString &bulkname, std::vector< TH1 * > *hv=0) const

Protected Attributes

TObjArrayfNetwork
TObjArrayfSynapses
TActivationfActivation
TActivationfOutput
TActivationfIdentity
TRandom3frgen
TNeuronInputfInputCalculator
std::vector< Int_tfRegulatorIdx
std::vector< Double_tfRegulators
EEstimator fEstimator
TString fEstimatorS
TH1FfEstimatorHistTrain
TH1FfEstimatorHistTest
std::vector< TH1 * > fEpochMonHistS
std::vector< TH1 * > fEpochMonHistB
std::vector< TH1 * > fEpochMonHistW
TMatrixD fInvHessian
bool fUseRegulator
Int_t fRandomSeed
TObjArrayfNetwork
TObjArrayfSynapses
TActivationfActivation
TActivationfOutput
TActivationfIdentity
TRandom3frgen
TNeuronInputfInputCalculator
std::vector< Int_tfRegulatorIdx
std::vector< Double_tfRegulators
TH1FfEstimatorHistTrain
TH1FfEstimatorHistTest
std::vector< TH1 * > fEpochMonHistS
std::vector< TH1 * > fEpochMonHistB
std::vector< TH1 * > fEpochMonHistW

Private Member Functions

void BuildLayers (std::vector< Int_t > *layout, Bool_t from_file=false)
void BuildLayer (Int_t numNeurons, TObjArray *curLayer, TObjArray *prevLayer, Int_t layerIndex, Int_t numLayers, Bool_t from_file=false)
void AddPreLinks (TNeuron *neuron, TObjArray *prevLayer)
void InitWeights ()
void ForceWeights (std::vector< Double_t > *weights)
void DeleteNetwork ()
void DeleteNetworkLayer (TObjArray *&layer)
void PrintLayer (TObjArray *layer) const
void PrintNeuron (TNeuron *neuron) const
void BuildLayers (std::vector< Int_t > *layout, Bool_t from_file=false)
void BuildLayer (Int_t numNeurons, TObjArray *curLayer, TObjArray *prevLayer, Int_t layerIndex, Int_t numLayers, Bool_t from_file=false)
void AddPreLinks (TNeuron *neuron, TObjArray *prevLayer)
void InitWeights ()
void ForceWeights (std::vector< Double_t > *weights)
void DeleteNetwork ()
void DeleteNetworkLayer (TObjArray *&layer)
void PrintLayer (TObjArray *layer) const
void PrintNeuron (TNeuron *neuron) const

Private Attributes

Int_t fNcycles
TString fNeuronType
TString fNeuronInputType
TObjArrayfInputLayer
std::vector< TNeuron * > fOutputNeurons
TString fLayerSpec
TObjArrayfInputLayer
std::vector< TNeuron * > fOutputNeurons

Static Private Attributes

static const Bool_t fgDEBUG = kTRUE

Detailed Description

Definition at line 76 of file MethodANNBase.h.


Member Enumeration Documentation

enum TMVA::MethodANNBase::EEstimator

Definition at line 141 of file MethodANNBase.h.

enum TMVA::MethodANNBase::EEstimator

Definition at line 141 of file MethodANNBase.h.


Constructor & Destructor Documentation

TMVA::MethodANNBase::MethodANNBase ( const TString jobName,
Types::EMVA  methodType,
const TString methodTitle,
DataSetInfo theData,
const TString theOption,
TDirectory theTargetDir 
)

TMVA::MethodANNBase::MethodANNBase ( Types::EMVA  methodType,
DataSetInfo theData,
const TString theWeightFile,
TDirectory theTargetDir 
)

Definition at line 86 of file MethodANNBase.cxx.

References DeclareOptions(), and InitANNBase().

TMVA::MethodANNBase::~MethodANNBase (  )  [virtual]

Definition at line 218 of file MethodANNBase.cxx.

References DeleteNetwork().

TMVA::MethodANNBase::MethodANNBase ( const TString jobName,
Types::EMVA  methodType,
const TString methodTitle,
DataSetInfo theData,
const TString theOption,
TDirectory theTargetDir 
)

TMVA::MethodANNBase::MethodANNBase ( Types::EMVA  methodType,
DataSetInfo theData,
const TString theWeightFile,
TDirectory theTargetDir 
)

virtual TMVA::MethodANNBase::~MethodANNBase (  )  [virtual]


Member Function Documentation

void TMVA::MethodANNBase::InitANNBase (  ) 

Definition at line 190 of file MethodANNBase.cxx.

References fActivation, fEpochMonHistB, fEpochMonHistS, fEpochMonHistW, fEstimatorHistTest, fEstimatorHistTrain, fIdentity, fInputCalculator, fInputLayer, fNetwork, fOutput, fOutputNeurons, fRandomSeed, frgen, fSynapses, and NULL.

Referenced by MethodANNBase().

void TMVA::MethodANNBase::SetActivation ( TActivation activation  )  [inline]

Definition at line 99 of file MethodANNBase.h.

References fActivation, and NULL.

void TMVA::MethodANNBase::SetNeuronInputCalculator ( TNeuronInput inputCalculator  )  [inline]

Definition at line 102 of file MethodANNBase.h.

References fInputCalculator, and NULL.

virtual void TMVA::MethodANNBase::Train (  )  [pure virtual]

Implements TMVA::MethodBase.

void TMVA::MethodANNBase::PrintNetwork (  )  const [virtual]

Definition at line 513 of file MethodANNBase.cxx.

References TObjArray::At(), Debug(), fNetwork, TObjArray::GetEntriesFast(), i, TMVA::kINFO, TMVA::Configurable::Log(), PrintLayer(), and PrintMessage().

Referenced by TMVA::MethodMLP::BFGSMinimize(), and TMVA::MethodMLP::TrainOneEpoch().

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

Implements TMVA::MethodBase.

Definition at line 672 of file MethodANNBase.cxx.

References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), TMVA::Tools::AddRawLine(), TXMLEngine::AddRawLine(), TObjArray::At(), fInvHessian, fNetwork, TObjArray::GetEntriesFast(), TMatrixTBase< Element >::GetMatrix2Array(), TMatrixTBase< Element >::GetNcols(), TMatrixTBase< Element >::GetNoElements(), TMatrixTBase< Element >::GetNrows(), TMVA::TSynapse::GetWeight(), TMVA::gTools(), i, j, k, TXMLEngine::NewAttr(), TXMLEngine::NewChild(), row, s, and TMVA::Tools::xmlengine().

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

Implements TMVA::MethodBase.

Definition at line 739 of file MethodANNBase.cxx.

References TObjArray::At(), BuildNetwork(), fInvHessian, fNetwork, fUseRegulator, TXMLEngine::GetChild(), TMVA::Tools::GetChild(), TMVA::Tools::GetContent(), TXMLEngine::GetNext(), TMVA::Tools::GetNextChild(), TXMLEngine::GetNodeContent(), TMVA::gTools(), kTRUE, NULL, TMVA::TNeuron::PostLinkAt(), TMVA::Tools::ReadAttr(), TMatrixT< Element >::ResizeTo(), row, s, TMatrixTBase< Element >::SetMatrixArray(), TMVA::TSynapse::SetWeight(), and TMVA::Tools::xmlengine().

void TMVA::MethodANNBase::ReadWeightsFromStream ( istream &  istr  )  [virtual]

Definition at line 849 of file MethodANNBase.cxx.

References dummy, and ForceWeights().

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

Implements TMVA::MethodBase.

Definition at line 568 of file MethodANNBase.cxx.

References TObjArray::At(), fNetwork, ForceNetworkCalculations(), TMVA::TNeuron::ForceValue(), TMVA::TNeuron::GetActivationValue(), TObjArray::GetEntriesFast(), TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetNvar(), TMVA::Event::GetValue(), i, and TMVA::MethodBase::NoErrorCalc().

Referenced by TMVA::MethodMLP::GetApproxInvHessian(), and TMVA::MethodMLP::GetMvaValueAsymError().

const std::vector< Float_t > & TMVA::MethodANNBase::GetRegressionValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 594 of file MethodANNBase.cxx.

References TObjArray::At(), Event, fNetwork, ForceNetworkCalculations(), TMVA::TNeuron::ForceValue(), TMVA::MethodBase::fRegressionReturnVal, TObjArray::GetEntriesFast(), TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetNvar(), TMVA::Event::GetTarget(), TMVA::MethodBase::GetTransformationHandler(), TMVA::Event::GetValue(), i, TMVA::TransformationHandler::InverseTransform(), NULL, and TMVA::Event::SetTarget().

const std::vector< Float_t > & TMVA::MethodANNBase::GetMulticlassValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 632 of file MethodANNBase.cxx.

References TObjArray::At(), TMVA::MethodBase::DataInfo(), exp(), TMVA::MethodBase::fMulticlassReturnVal, fNetwork, ForceNetworkCalculations(), TMVA::TNeuron::ForceValue(), TMVA::MethodBase::GetEvent(), TMVA::DataSetInfo::GetNClasses(), TMVA::MethodBase::GetNvar(), GetOutputNeuron(), TMVA::Event::GetValue(), i, j, norm(), and NULL.

void TMVA::MethodANNBase::WriteMonitoringHistosToFile (  )  const [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 950 of file MethodANNBase.cxx.

References TMVA::MethodBase::BaseDir(), TDirectory::cd(), CreateWeightMonitoringHists(), fEpochMonHistB, fEpochMonHistS, fEpochMonHistW, fEstimatorHistTest, fEstimatorHistTrain, Form(), kTRUE, TDirectory::mkdir(), NULL, PrintMessage(), and TObject::Write().

const TMVA::Ranking * TMVA::MethodANNBase::CreateRanking (  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 870 of file MethodANNBase.cxx.

References TMVA::Ranking::AddRank(), TMVA::MethodBase::fRanking, GetInputNeuron(), TMVA::MethodBase::GetInputVar(), TMVA::MethodBase::GetName(), TMVA::MethodBase::GetNvar(), TMVA::TSynapse::GetWeight(), TMVA::MethodBase::GetXmax(), TMVA::MethodBase::GetXmin(), TMVA::gTools(), TMVA::MethodBase::IsNormalised(), j, TMVA::Types::kTraining, TMVA::Tools::NormVariable(), TMVA::TNeuron::NumPostLinks(), TMVA::TNeuron::PostLinkAt(), TMVA::MethodBase::Statistics(), xmax, and xmin.

void TMVA::MethodANNBase::DeclareOptions (  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 102 of file MethodANNBase.cxx.

References TMVA::Configurable::AddPreDefVal(), TMVA::Configurable::DeclareOptionRef(), fEstimatorS, fLayerSpec, fNcycles, fNeuronInputType, fNeuronType, fRandomSeed, TMVA::TActivationChooser::GetAllActivationNames(), TMVA::TNeuronInputChooser::GetAllNeuronInputNames(), i, and names.

Referenced by MethodANNBase().

void TMVA::MethodANNBase::ProcessOptions (  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 141 of file MethodANNBase.cxx.

References BuildNetwork(), TMVA::MethodBase::DoMulticlass(), TMVA::MethodBase::DoRegression(), fEstimator, fEstimatorS, fLayerSpec, kCE, kMSE, and ParseLayoutString().

Referenced by TMVA::MethodMLP::ProcessOptions().

Bool_t TMVA::MethodANNBase::Debug (  )  const

Definition at line 1101 of file MethodANNBase.cxx.

References fgDEBUG.

Referenced by PrintMessage(), and PrintNetwork().

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

Reimplemented from TMVA::MethodBase.

Definition at line 987 of file MethodANNBase.cxx.

References TObjArray::At(), fActivation, fNetwork, fNeuronInputType, fOutput, TObjArray::GetEntries(), TMVA::TSynapse::GetWeight(), i, j, k, and TMVA::TActivation::MakeFunction().

Referenced by TMVA::MethodMLP::MakeClassSpecific().

vector< Int_t > * TMVA::MethodANNBase::ParseLayoutString ( TString  layerSpec  )  [protected]

Definition at line 153 of file MethodANNBase.cxx.

References TMVA::MethodBase::DataInfo(), TMVA::MethodBase::DoMulticlass(), TMVA::MethodBase::DoRegression(), TString::First(), TMVA::MethodBase::GetNTargets(), TMVA::MethodBase::GetNvar(), TString::Length(), n, and TString::Remove().

Referenced by ProcessOptions().

virtual void TMVA::MethodANNBase::BuildNetwork ( std::vector< Int_t > *  layout,
std::vector< Double_t > *  weights = NULL,
Bool_t  fromFile = kFALSE 
) [protected, virtual]

Referenced by ProcessOptions(), and ReadWeightsFromXML().

void TMVA::MethodANNBase::ForceNetworkInputs ( const Event ev,
Int_t  ignoreIndex = -1 
) [protected]

Definition at line 450 of file MethodANNBase.cxx.

References TMVA::TNeuron::ForceValue(), GetInputNeuron(), TMVA::MethodBase::GetNvar(), TMVA::Event::GetValue(), j, and x.

Referenced by TMVA::MethodMLP::CalculateEstimator(), TMVA::MethodMLP::SimulateEvent(), and TMVA::MethodMLP::TrainOneEvent().

Double_t TMVA::MethodANNBase::GetNetworkOutput (  )  [inline, protected]

Definition at line 151 of file MethodANNBase.h.

References TMVA::TNeuron::GetActivationValue(), and GetOutputNeuron().

void TMVA::MethodANNBase::PrintMessage ( TString  message,
Bool_t  force = kFALSE 
) const [protected]

Definition at line 492 of file MethodANNBase.cxx.

References Debug(), TMVA::kINFO, TMVA::Configurable::Log(), and TMVA::MethodBase::Verbose().

Referenced by TMVA::MethodMLP::GeneticMinimize(), InitWeights(), PrintNetwork(), TMVA::MethodMLP::Train(), WaitForKeyboard(), and WriteMonitoringHistosToFile().

void TMVA::MethodANNBase::ForceNetworkCalculations (  )  [protected]

Definition at line 469 of file MethodANNBase.cxx.

References TObjArray::At(), TMVA::TNeuron::CalculateActivationValue(), TMVA::TNeuron::CalculateValue(), fNetwork, TObjArray::GetEntriesFast(), i, and j.

Referenced by TMVA::MethodMLP::CalculateEstimator(), GetMulticlassValues(), GetMvaValue(), GetRegressionValues(), TMVA::MethodMLP::SimulateEvent(), TMVA::MethodMLP::TrainOneEvent(), and TMVA::MethodMLP::TrainOneEventFast().

void TMVA::MethodANNBase::WaitForKeyboard (  )  [protected]

Definition at line 499 of file MethodANNBase.cxx.

References dummy, getline(), TMVA::kINFO, TMVA::Configurable::Log(), and PrintMessage().

Referenced by TMVA::MethodMLP::BFGSMinimize(), and TMVA::MethodMLP::TrainOneEpoch().

Int_t TMVA::MethodANNBase::NumCycles (  )  [inline, protected]

Definition at line 159 of file MethodANNBase.h.

References fNcycles.

Referenced by TMVA::MethodMLP::Train().

TNeuron* TMVA::MethodANNBase::GetInputNeuron ( Int_t  index  )  [inline, protected]

Definition at line 160 of file MethodANNBase.h.

References TObjArray::At(), and fInputLayer.

Referenced by CreateRanking(), ForceNetworkInputs(), and TMVA::MethodMLP::TrainOneEventFast().

TNeuron* TMVA::MethodANNBase::GetOutputNeuron ( Int_t  index = 0  )  [inline, protected]

Definition at line 161 of file MethodANNBase.h.

References fOutputNeurons.

Referenced by TMVA::MethodMLP::CalculateEstimator(), TMVA::MethodMLP::GetApproxInvHessian(), TMVA::MethodMLP::GetCEErr(), TMVA::MethodMLP::GetMSEErr(), GetMulticlassValues(), TMVA::MethodMLP::GetMvaValueAsymError(), GetNetworkOutput(), TMVA::MethodMLP::SimulateEvent(), and TMVA::MethodMLP::UpdateNetwork().

void TMVA::MethodANNBase::CreateWeightMonitoringHists ( const TString bulkname,
std::vector< TH1 * > *  hv = 0 
) const [protected]

Definition at line 911 of file MethodANNBase.cxx.

References TObjArray::At(), TString::Data(), fNetwork, Form(), TObjArray::GetEntriesFast(), TMVA::TSynapse::GetWeight(), hist, i, j, k, name, and TObject::Write().

Referenced by TMVA::MethodMLP::CalculateEstimator(), and WriteMonitoringHistosToFile().

void TMVA::MethodANNBase::BuildLayers ( std::vector< Int_t > *  layout,
Bool_t  from_file = false 
) [private]

void TMVA::MethodANNBase::BuildLayer ( Int_t  numNeurons,
TObjArray curLayer,
TObjArray prevLayer,
Int_t  layerIndex,
Int_t  numLayers,
Bool_t  from_file = false 
) [private]

Definition at line 349 of file MethodANNBase.cxx.

References TObjArray::Add(), AddPreLinks(), fActivation, fIdentity, fInputCalculator, TMVA::TNeuron::ForceValue(), fOutput, j, TMVA::TNeuron::SetActivationEqn(), TMVA::TNeuron::SetBiasNeuron(), TMVA::TNeuron::SetInputCalculator(), TMVA::TNeuron::SetInputNeuron(), and TMVA::TNeuron::SetOutputNeuron().

void TMVA::MethodANNBase::AddPreLinks ( TNeuron neuron,
TObjArray prevLayer 
) [private]

Definition at line 402 of file MethodANNBase.cxx.

References TMVA::TNeuron::AddPostLink(), TMVA::TNeuron::AddPreLink(), TObjArray::At(), TObjArray::GetEntriesFast(), i, TMVA::TSynapse::SetPostNeuron(), and TMVA::TSynapse::SetPreNeuron().

Referenced by BuildLayer().

void TMVA::MethodANNBase::InitWeights (  )  [private]

Definition at line 421 of file MethodANNBase.cxx.

References TObjArray::At(), frgen, fSynapses, TObjArray::GetEntriesFast(), i, PrintMessage(), TRandom3::Rndm(), and TMVA::TSynapse::SetWeight().

void TMVA::MethodANNBase::ForceWeights ( std::vector< Double_t > *  weights  )  [private]

Referenced by ReadWeightsFromStream().

void TMVA::MethodANNBase::DeleteNetwork (  )  [private]

Definition at line 225 of file MethodANNBase.cxx.

References TObjArray::At(), DeleteNetworkLayer(), fActivation, fIdentity, fInputCalculator, fNetwork, fOutput, frgen, fSynapses, TObjArray::GetEntriesFast(), i, and NULL.

Referenced by ~MethodANNBase().

void TMVA::MethodANNBase::DeleteNetworkLayer ( TObjArray *&  layer  )  [private]

Definition at line 255 of file MethodANNBase.cxx.

References TMVA::TNeuron::DeletePreLinks(), and i.

Referenced by DeleteNetwork().

void TMVA::MethodANNBase::PrintLayer ( TObjArray layer  )  const [private]

Definition at line 536 of file MethodANNBase.cxx.

References j, TMVA::kINFO, TMVA::Configurable::Log(), TMVA::TNeuron::NumPostLinks(), TMVA::TNeuron::NumPreLinks(), and PrintNeuron().

Referenced by PrintNetwork().

void TMVA::MethodANNBase::PrintNeuron ( TNeuron neuron  )  const [private]

Definition at line 552 of file MethodANNBase.cxx.

References TMVA::TNeuron::GetActivationValue(), TMVA::TNeuron::GetDelta(), TMVA::TNeuron::GetValue(), TMVA::kINFO, TMVA::Configurable::Log(), TMVA::TNeuron::PrintActivationEqn(), TMVA::TNeuron::PrintPostLinks(), and TMVA::TNeuron::PrintPreLinks().

Referenced by PrintLayer().

void TMVA::MethodANNBase::InitANNBase (  ) 

void TMVA::MethodANNBase::SetActivation ( TActivation activation  )  [inline]

Definition at line 99 of file MethodANNBase.h.

References fActivation, and NULL.

void TMVA::MethodANNBase::SetNeuronInputCalculator ( TNeuronInput inputCalculator  )  [inline]

Definition at line 102 of file MethodANNBase.h.

References fInputCalculator, and NULL.

virtual void TMVA::MethodANNBase::Train (  )  [pure virtual]

Implements TMVA::MethodBase.

virtual void TMVA::MethodANNBase::PrintNetwork (  )  const [virtual]

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

Implements TMVA::MethodBase.

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

Implements TMVA::MethodBase.

virtual void TMVA::MethodANNBase::ReadWeightsFromStream ( istream &  istr  )  [virtual]

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

Implements TMVA::MethodBase.

virtual const std::vector<Float_t>& TMVA::MethodANNBase::GetRegressionValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

virtual const std::vector<Float_t>& TMVA::MethodANNBase::GetMulticlassValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

virtual void TMVA::MethodANNBase::WriteMonitoringHistosToFile (  )  const [virtual]

Reimplemented from TMVA::MethodBase.

const Ranking* TMVA::MethodANNBase::CreateRanking (  )  [virtual]

Implements TMVA::MethodBase.

virtual void TMVA::MethodANNBase::DeclareOptions (  )  [virtual]

Implements TMVA::MethodBase.

virtual void TMVA::MethodANNBase::ProcessOptions (  )  [virtual]

Implements TMVA::MethodBase.

Bool_t TMVA::MethodANNBase::Debug (  )  const

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

Reimplemented from TMVA::MethodBase.

std::vector<Int_t>* TMVA::MethodANNBase::ParseLayoutString ( TString  layerSpec  )  [protected]

virtual void TMVA::MethodANNBase::BuildNetwork ( std::vector< Int_t > *  layout,
std::vector< Double_t > *  weights = NULL,
Bool_t  fromFile = kFALSE 
) [protected, virtual]

void TMVA::MethodANNBase::ForceNetworkInputs ( const Event ev,
Int_t  ignoreIndex = -1 
) [protected]

Double_t TMVA::MethodANNBase::GetNetworkOutput (  )  [inline, protected]

Definition at line 151 of file MethodANNBase.h.

References TMVA::TNeuron::GetActivationValue(), and GetOutputNeuron().

void TMVA::MethodANNBase::PrintMessage ( TString  message,
Bool_t  force = kFALSE 
) const [protected]

void TMVA::MethodANNBase::ForceNetworkCalculations (  )  [protected]

void TMVA::MethodANNBase::WaitForKeyboard (  )  [protected]

Int_t TMVA::MethodANNBase::NumCycles (  )  [inline, protected]

Definition at line 159 of file MethodANNBase.h.

References fNcycles.

TNeuron* TMVA::MethodANNBase::GetInputNeuron ( Int_t  index  )  [inline, protected]

Definition at line 160 of file MethodANNBase.h.

References TObjArray::At(), and fInputLayer.

TNeuron* TMVA::MethodANNBase::GetOutputNeuron ( Int_t  index = 0  )  [inline, protected]

Definition at line 161 of file MethodANNBase.h.

References fOutputNeurons.

void TMVA::MethodANNBase::CreateWeightMonitoringHists ( const TString bulkname,
std::vector< TH1 * > *  hv = 0 
) const [protected]

void TMVA::MethodANNBase::BuildLayers ( std::vector< Int_t > *  layout,
Bool_t  from_file = false 
) [private]

void TMVA::MethodANNBase::BuildLayer ( Int_t  numNeurons,
TObjArray curLayer,
TObjArray prevLayer,
Int_t  layerIndex,
Int_t  numLayers,
Bool_t  from_file = false 
) [private]

void TMVA::MethodANNBase::AddPreLinks ( TNeuron neuron,
TObjArray prevLayer 
) [private]

void TMVA::MethodANNBase::InitWeights (  )  [private]

void TMVA::MethodANNBase::ForceWeights ( std::vector< Double_t > *  weights  )  [private]

void TMVA::MethodANNBase::DeleteNetwork (  )  [private]

void TMVA::MethodANNBase::DeleteNetworkLayer ( TObjArray *&  layer  )  [private]

void TMVA::MethodANNBase::PrintLayer ( TObjArray layer  )  const [private]

void TMVA::MethodANNBase::PrintNeuron ( TNeuron neuron  )  const [private]


Member Data Documentation

TObjArray* TMVA::MethodANNBase::fNetwork [protected]

Definition at line 164 of file MethodANNBase.h.

Referenced by AddWeightsXMLTo(), TMVA::MethodMLP::AdjustSynapseWeights(), TMVA::MethodMLP::CalculateNeuronDeltas(), CreateWeightMonitoringHists(), DeleteNetwork(), ForceNetworkCalculations(), GetMulticlassValues(), GetMvaValue(), GetRegressionValues(), InitANNBase(), MakeClassSpecific(), PrintNetwork(), ReadWeightsFromXML(), TMVA::MethodMLP::Train(), and TMVA::MethodMLP::UpdateSynapses().

TObjArray* TMVA::MethodANNBase::fSynapses [protected]

Definition at line 165 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::BFGSMinimize(), TMVA::MethodMLP::ComputeDEDw(), TMVA::MethodMLP::ComputeEstimator(), TMVA::MethodMLP::DecaySynapseWeights(), DeleteNetwork(), TMVA::MethodMLP::DerivDir(), TMVA::MethodMLP::GeneticMinimize(), TMVA::MethodMLP::GetApproxInvHessian(), TMVA::MethodMLP::GetMvaValueAsymError(), InitANNBase(), TMVA::MethodMLP::InitializeLearningRates(), InitWeights(), TMVA::MethodMLP::LineSearch(), TMVA::MethodMLP::SetDir(), TMVA::MethodMLP::SetDirWeights(), TMVA::MethodMLP::SetGammaDelta(), TMVA::MethodMLP::SimulateEvent(), TMVA::MethodMLP::SteepestDir(), TMVA::MethodMLP::Train(), TMVA::MethodMLP::UpdatePriors(), and TMVA::MethodMLP::UpdateRegulators().

TActivation* TMVA::MethodANNBase::fActivation [protected]

Definition at line 166 of file MethodANNBase.h.

Referenced by BuildLayer(), DeleteNetwork(), InitANNBase(), MakeClassSpecific(), and SetActivation().

TActivation* TMVA::MethodANNBase::fOutput [protected]

Definition at line 167 of file MethodANNBase.h.

Referenced by BuildLayer(), DeleteNetwork(), TMVA::MethodMLP::GetApproxInvHessian(), TMVA::MethodMLP::GetDesiredOutput(), TMVA::MethodMLP::GetMvaValueAsymError(), InitANNBase(), MakeClassSpecific(), and TMVA::MethodMLP::TrainOneEventFast().

TActivation* TMVA::MethodANNBase::fIdentity [protected]

Definition at line 168 of file MethodANNBase.h.

Referenced by BuildLayer(), DeleteNetwork(), and InitANNBase().

TRandom3* TMVA::MethodANNBase::frgen [protected]

Definition at line 169 of file MethodANNBase.h.

Referenced by DeleteNetwork(), InitANNBase(), InitWeights(), and TMVA::MethodMLP::Shuffle().

TNeuronInput* TMVA::MethodANNBase::fInputCalculator [protected]

Definition at line 170 of file MethodANNBase.h.

Referenced by BuildLayer(), DeleteNetwork(), InitANNBase(), and SetNeuronInputCalculator().

std::vector<Int_t> TMVA::MethodANNBase::fRegulatorIdx [protected]

Definition at line 172 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::GetApproxInvHessian(), TMVA::MethodMLP::UpdatePriors(), and TMVA::MethodMLP::UpdateRegulators().

std::vector<Double_t> TMVA::MethodANNBase::fRegulators [protected]

Definition at line 173 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::GetApproxInvHessian(), TMVA::MethodMLP::UpdatePriors(), and TMVA::MethodMLP::UpdateRegulators().

EEstimator TMVA::MethodANNBase::fEstimator [protected]

Definition at line 174 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::CalculateEstimator(), TMVA::MethodMLP::GetApproxInvHessian(), TMVA::MethodMLP::GetError(), ProcessOptions(), TMVA::MethodMLP::SimulateEvent(), TMVA::MethodMLP::UpdateNetwork(), and TMVA::MethodMLP::UpdateRegulators().

TString TMVA::MethodANNBase::fEstimatorS [protected]

Definition at line 175 of file MethodANNBase.h.

Referenced by DeclareOptions(), and ProcessOptions().

TH1F* TMVA::MethodANNBase::fEstimatorHistTrain [protected]

Definition at line 178 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::BackPropagationMinimize(), TMVA::MethodMLP::BFGSMinimize(), InitANNBase(), and WriteMonitoringHistosToFile().

TH1F* TMVA::MethodANNBase::fEstimatorHistTest [protected]

Definition at line 179 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::BackPropagationMinimize(), TMVA::MethodMLP::BFGSMinimize(), InitANNBase(), and WriteMonitoringHistosToFile().

std::vector<TH1*> TMVA::MethodANNBase::fEpochMonHistS [protected]

Definition at line 183 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::CalculateEstimator(), InitANNBase(), and WriteMonitoringHistosToFile().

std::vector<TH1*> TMVA::MethodANNBase::fEpochMonHistB [protected]

Definition at line 184 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::CalculateEstimator(), InitANNBase(), and WriteMonitoringHistosToFile().

std::vector<TH1*> TMVA::MethodANNBase::fEpochMonHistW [protected]

Definition at line 185 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::CalculateEstimator(), InitANNBase(), and WriteMonitoringHistosToFile().

TMatrixD TMVA::MethodANNBase::fInvHessian [protected]

Definition at line 189 of file MethodANNBase.h.

Referenced by AddWeightsXMLTo(), TMVA::MethodMLP::GetMvaValueAsymError(), ReadWeightsFromXML(), and TMVA::MethodMLP::Train().

bool TMVA::MethodANNBase::fUseRegulator [protected]

Definition at line 190 of file MethodANNBase.h.

Referenced by ReadWeightsFromXML().

Int_t TMVA::MethodANNBase::fRandomSeed [protected]

Definition at line 193 of file MethodANNBase.h.

Referenced by TMVA::MethodMLP::BackPropagationMinimize(), TMVA::MethodMLP::BFGSMinimize(), DeclareOptions(), and InitANNBase().

Int_t TMVA::MethodANNBase::fNcycles [private]

Definition at line 216 of file MethodANNBase.h.

Referenced by DeclareOptions(), and NumCycles().

TString TMVA::MethodANNBase::fNeuronType [private]

Definition at line 217 of file MethodANNBase.h.

Referenced by DeclareOptions().

TString TMVA::MethodANNBase::fNeuronInputType [private]

Definition at line 218 of file MethodANNBase.h.

Referenced by DeclareOptions(), and MakeClassSpecific().

TObjArray* TMVA::MethodANNBase::fInputLayer [private]

Definition at line 219 of file MethodANNBase.h.

Referenced by GetInputNeuron(), and InitANNBase().

std::vector<TNeuron*> TMVA::MethodANNBase::fOutputNeurons [private]

Definition at line 220 of file MethodANNBase.h.

Referenced by GetOutputNeuron(), and InitANNBase().

TString TMVA::MethodANNBase::fLayerSpec [private]

Definition at line 221 of file MethodANNBase.h.

Referenced by DeclareOptions(), and ProcessOptions().

static const Bool_t TMVA::MethodANNBase::fgDEBUG = kTRUE [static, private]

Definition at line 224 of file MethodANNBase.h.

Referenced by Debug().

TObjArray* TMVA::MethodANNBase::fNetwork [protected]

Definition at line 164 of file MethodANNBase.h.

TObjArray* TMVA::MethodANNBase::fSynapses [protected]

Definition at line 165 of file MethodANNBase.h.

TActivation* TMVA::MethodANNBase::fActivation [protected]

Definition at line 166 of file MethodANNBase.h.

TActivation* TMVA::MethodANNBase::fOutput [protected]

Definition at line 167 of file MethodANNBase.h.

TActivation* TMVA::MethodANNBase::fIdentity [protected]

Definition at line 168 of file MethodANNBase.h.

TRandom3* TMVA::MethodANNBase::frgen [protected]

Definition at line 169 of file MethodANNBase.h.

TNeuronInput* TMVA::MethodANNBase::fInputCalculator [protected]

Definition at line 170 of file MethodANNBase.h.

std::vector<Int_t> TMVA::MethodANNBase::fRegulatorIdx [protected]

Definition at line 172 of file MethodANNBase.h.

std::vector<Double_t> TMVA::MethodANNBase::fRegulators [protected]

Definition at line 173 of file MethodANNBase.h.

TH1F* TMVA::MethodANNBase::fEstimatorHistTrain [protected]

Definition at line 178 of file MethodANNBase.h.

TH1F* TMVA::MethodANNBase::fEstimatorHistTest [protected]

Definition at line 179 of file MethodANNBase.h.

std::vector<TH1*> TMVA::MethodANNBase::fEpochMonHistS [protected]

Definition at line 183 of file MethodANNBase.h.

std::vector<TH1*> TMVA::MethodANNBase::fEpochMonHistB [protected]

Definition at line 184 of file MethodANNBase.h.

std::vector<TH1*> TMVA::MethodANNBase::fEpochMonHistW [protected]

Definition at line 185 of file MethodANNBase.h.

TObjArray* TMVA::MethodANNBase::fInputLayer [private]

Definition at line 219 of file MethodANNBase.h.

std::vector<TNeuron*> TMVA::MethodANNBase::fOutputNeurons [private]

Definition at line 220 of file MethodANNBase.h.


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