TMVA::TNeuron Class Reference

#include <TNeuron.h>

Inheritance diagram for TMVA::TNeuron:

TObject TObject List of all members.

Public Member Functions

 TNeuron ()
virtual ~TNeuron ()
void ForceValue (Double_t value)
void CalculateValue ()
void CalculateActivationValue ()
void CalculateDelta ()
void SetActivationEqn (TActivation *activation)
void SetInputCalculator (TNeuronInput *calculator)
void AddPreLink (TSynapse *pre)
void AddPostLink (TSynapse *post)
void DeletePreLinks ()
void SetError (Double_t error)
void UpdateSynapsesBatch ()
void UpdateSynapsesSequential ()
void AdjustSynapseWeights ()
void InitSynapseDeltas ()
void PrintActivationEqn ()
Double_t GetValue () const
Double_t GetActivationValue () const
Double_t GetDelta () const
Double_t GetDEDw () const
Int_t NumPreLinks () const
Int_t NumPostLinks () const
TSynapsePreLinkAt (Int_t index) const
TSynapsePostLinkAt (Int_t index) const
void SetInputNeuron ()
void SetOutputNeuron ()
void SetBiasNeuron ()
void SetDEDw (Double_t DEDw)
Bool_t IsInputNeuron () const
Bool_t IsOutputNeuron () const
void PrintPreLinks () const
void PrintPostLinks () const
virtual void Print (Option_t *="") const
 TNeuron ()
virtual ~TNeuron ()
void ForceValue (Double_t value)
void CalculateValue ()
void CalculateActivationValue ()
void CalculateDelta ()
void SetActivationEqn (TActivation *activation)
void SetInputCalculator (TNeuronInput *calculator)
void AddPreLink (TSynapse *pre)
void AddPostLink (TSynapse *post)
void DeletePreLinks ()
void SetError (Double_t error)
void UpdateSynapsesBatch ()
void UpdateSynapsesSequential ()
void AdjustSynapseWeights ()
void InitSynapseDeltas ()
void PrintActivationEqn ()
Double_t GetValue () const
Double_t GetActivationValue () const
Double_t GetDelta () const
Double_t GetDEDw () const
Int_t NumPreLinks () const
Int_t NumPostLinks () const
TSynapsePreLinkAt (Int_t index) const
TSynapsePostLinkAt (Int_t index) const
void SetInputNeuron ()
void SetOutputNeuron ()
void SetBiasNeuron ()
void SetDEDw (Double_t DEDw)
Bool_t IsInputNeuron () const
Bool_t IsOutputNeuron () const
void PrintPreLinks () const
void PrintPostLinks () const
virtual void Print (Option_t *="") const

Private Member Functions

void InitNeuron ()
void DeleteLinksArray (TObjArray *&links)
void PrintLinks (TObjArray *links) const
void PrintMessage (EMsgType, TString message)
Int_t NumLinks (TObjArray *links) const
void NullifyLinks (TObjArray *&links)
MsgLoggerLog () const
 message logger, static to save resources
void InitNeuron ()
void DeleteLinksArray (TObjArray *&links)
void PrintLinks (TObjArray *links) const
void PrintMessage (EMsgType, TString message)
Int_t NumLinks (TObjArray *links) const
void NullifyLinks (TObjArray *&links)
MsgLoggerLog () const
 message logger, static to save resources

Private Attributes

TObjArrayfLinksIn
TObjArrayfLinksOut
Double_t fValue
Double_t fActivationValue
Double_t fDelta
Double_t fDEDw
Double_t fError
Bool_t fForcedValue
TActivationfActivation
TNeuronInputfInputCalculator
TObjArrayfLinksIn
TObjArrayfLinksOut
TActivationfActivation
TNeuronInputfInputCalculator

Static Private Attributes

static MsgLoggerfgLogger
static MsgLoggerfgLogger

Detailed Description

Definition at line 61 of file TNeuron.h.


Constructor & Destructor Documentation

TMVA::TNeuron::TNeuron (  ) 

TNeuron::~TNeuron (  )  [virtual]

Definition at line 64 of file TNeuron.cxx.

References fLinksIn, fLinksOut, and NULL.

TMVA::TNeuron::TNeuron (  ) 

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


Member Function Documentation

void TNeuron::ForceValue ( Double_t  value  ) 

Definition at line 87 of file TNeuron.cxx.

References fForcedValue, fValue, and kTRUE.

Referenced by TMVA::MethodANNBase::BuildLayer(), TMVA::MethodANNBase::ForceNetworkInputs(), TMVA::MethodANNBase::GetMulticlassValues(), TMVA::MethodANNBase::GetMvaValue(), TMVA::MethodANNBase::GetRegressionValues(), and TMVA::MethodMLP::TrainOneEventFast().

void TNeuron::CalculateValue (  ) 

Definition at line 95 of file TNeuron.cxx.

References fForcedValue, fInputCalculator, fValue, and TMVA::TNeuronInput::GetInput().

Referenced by TMVA::MethodANNBase::ForceNetworkCalculations().

void TNeuron::CalculateActivationValue (  ) 

Definition at line 103 of file TNeuron.cxx.

References TMVA::TActivation::Eval(), fActivation, fActivationValue, fValue, TMVA::kWARNING, NULL, PrintMessage(), and UNINITIALIZED.

Referenced by TMVA::MethodANNBase::ForceNetworkCalculations().

void TNeuron::CalculateDelta (  ) 

Definition at line 117 of file TNeuron.cxx.

References error, TMVA::TActivation::EvalDerivative(), fActivation, fDelta, fError, fLinksOut, GetValue(), TMVA::TSynapse::GetWeightedDelta(), IsInputNeuron(), IsOutputNeuron(), TObjArray::MakeIterator(), TObjArrayIter::Next(), and NULL.

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

void TNeuron::SetActivationEqn ( TActivation activation  ) 

Definition at line 159 of file TNeuron.cxx.

References fActivation, and NULL.

Referenced by TMVA::MethodANNBase::BuildLayer().

void TNeuron::SetInputCalculator ( TNeuronInput calculator  ) 

Definition at line 151 of file TNeuron.cxx.

References fInputCalculator, and NULL.

Referenced by TMVA::MethodANNBase::BuildLayer().

void TNeuron::AddPreLink ( TSynapse pre  ) 

Definition at line 167 of file TNeuron.cxx.

References TObjArray::Add(), fLinksIn, and IsInputNeuron().

Referenced by TMVA::MethodANNBase::AddPreLinks().

void TNeuron::AddPostLink ( TSynapse post  ) 

Definition at line 175 of file TNeuron.cxx.

References TObjArray::Add(), fLinksOut, and IsOutputNeuron().

Referenced by TMVA::MethodANNBase::AddPreLinks().

void TNeuron::DeletePreLinks (  ) 

Definition at line 183 of file TNeuron.cxx.

References DeleteLinksArray(), and fLinksIn.

Referenced by TMVA::MethodANNBase::DeleteNetworkLayer().

void TNeuron::SetError ( Double_t  error  ) 

Definition at line 207 of file TNeuron.cxx.

References fError, IsOutputNeuron(), TMVA::kWARNING, and PrintMessage().

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

void TNeuron::UpdateSynapsesBatch (  ) 

Definition at line 217 of file TNeuron.cxx.

References TMVA::TSynapse::CalculateDelta(), fLinksIn, IsInputNeuron(), TObjArray::MakeIterator(), TObjArrayIter::Next(), and NULL.

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

void TNeuron::UpdateSynapsesSequential (  ) 

Definition at line 237 of file TNeuron.cxx.

References TMVA::TSynapse::AdjustWeight(), TMVA::TSynapse::CalculateDelta(), fLinksIn, TMVA::TSynapse::InitDelta(), IsInputNeuron(), TObjArray::MakeIterator(), TObjArrayIter::Next(), and NULL.

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

void TNeuron::AdjustSynapseWeights (  ) 

Definition at line 259 of file TNeuron.cxx.

References TMVA::TSynapse::AdjustWeight(), fLinksIn, IsInputNeuron(), TObjArray::MakeIterator(), TObjArrayIter::Next(), and NULL.

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

void TNeuron::InitSynapseDeltas (  ) 

Definition at line 279 of file TNeuron.cxx.

References fLinksIn, TMVA::TSynapse::InitDelta(), IsInputNeuron(), TObjArray::MakeIterator(), TObjArrayIter::Next(), and NULL.

void TNeuron::PrintActivationEqn (  ) 

Definition at line 324 of file TNeuron.cxx.

References Endl, fActivation, TMVA::TActivation::GetExpression(), TMVA::kDEBUG, Log(), and NULL.

Referenced by TMVA::MethodANNBase::PrintNeuron().

Double_t TMVA::TNeuron::GetValue (  )  const [inline]

Definition at line 116 of file TNeuron.h.

References fValue.

Referenced by CalculateDelta(), TMVA::MethodMLP::GetMvaValueAsymError(), and TMVA::MethodANNBase::PrintNeuron().

Double_t TMVA::TNeuron::GetActivationValue (  )  const [inline]

Definition at line 117 of file TNeuron.h.

References fActivationValue.

Referenced by TMVA::TSynapse::CalculateDelta(), TMVA::MethodMLP::CalculateEstimator(), TMVA::MethodMLP::GetCEErr(), TMVA::MethodMLP::GetMSEErr(), TMVA::MethodANNBase::GetMvaValue(), TMVA::MethodANNBase::GetNetworkOutput(), TMVA::TSynapse::GetWeightedValue(), TMVA::MethodANNBase::PrintNeuron(), TMVA::MethodMLP::SimulateEvent(), and TMVA::MethodMLP::UpdateNetwork().

Double_t TMVA::TNeuron::GetDelta (  )  const [inline]

Definition at line 118 of file TNeuron.h.

References fDelta.

Referenced by TMVA::TSynapse::CalculateDelta(), TMVA::TSynapse::GetWeightedDelta(), and TMVA::MethodANNBase::PrintNeuron().

Double_t TMVA::TNeuron::GetDEDw (  )  const [inline]

Definition at line 119 of file TNeuron.h.

References fDEDw.

Int_t TMVA::TNeuron::NumPreLinks (  )  const [inline]

Definition at line 120 of file TNeuron.h.

References fLinksIn, and NumLinks().

Referenced by TMVA::TNeuronInputSqSum::GetInput(), TMVA::TNeuronInputAbs::GetInput(), TMVA::TNeuronInputSum::GetInput(), and TMVA::MethodANNBase::PrintLayer().

Int_t TMVA::TNeuron::NumPostLinks (  )  const [inline]

Definition at line 121 of file TNeuron.h.

References fLinksOut, and NumLinks().

Referenced by TMVA::MethodANNBase::CreateRanking(), and TMVA::MethodANNBase::PrintLayer().

TSynapse* TMVA::TNeuron::PreLinkAt ( Int_t  index  )  const [inline]

Definition at line 122 of file TNeuron.h.

References TObjArray::At(), and fLinksIn.

Referenced by TMVA::TNeuronInputSqSum::GetInput(), TMVA::TNeuronInputAbs::GetInput(), and TMVA::TNeuronInputSum::GetInput().

TSynapse* TMVA::TNeuron::PostLinkAt ( Int_t  index  )  const [inline]

Definition at line 123 of file TNeuron.h.

References TObjArray::At(), and fLinksOut.

Referenced by TMVA::MethodANNBase::CreateRanking(), and TMVA::MethodANNBase::ReadWeightsFromXML().

void TMVA::TNeuron::SetInputNeuron (  )  [inline]

Definition at line 124 of file TNeuron.h.

References fLinksIn, and NullifyLinks().

Referenced by TMVA::MethodANNBase::BuildLayer().

void TMVA::TNeuron::SetOutputNeuron (  )  [inline]

Definition at line 125 of file TNeuron.h.

References fLinksOut, and NullifyLinks().

Referenced by TMVA::MethodANNBase::BuildLayer().

void TMVA::TNeuron::SetBiasNeuron (  )  [inline]

Definition at line 126 of file TNeuron.h.

References fLinksIn, and NullifyLinks().

Referenced by TMVA::MethodANNBase::BuildLayer().

void TMVA::TNeuron::SetDEDw ( Double_t  DEDw  )  [inline]

Definition at line 127 of file TNeuron.h.

References fDEDw.

Bool_t TMVA::TNeuron::IsInputNeuron (  )  const [inline]

Definition at line 128 of file TNeuron.h.

References fLinksIn, and NULL.

Referenced by AddPreLink(), AdjustSynapseWeights(), CalculateDelta(), TMVA::TNeuronInputSqSum::GetInput(), TMVA::TNeuronInputAbs::GetInput(), TMVA::TNeuronInputSum::GetInput(), InitSynapseDeltas(), UpdateSynapsesBatch(), and UpdateSynapsesSequential().

Bool_t TMVA::TNeuron::IsOutputNeuron (  )  const [inline]

Definition at line 129 of file TNeuron.h.

References fLinksOut, and NULL.

Referenced by AddPostLink(), CalculateDelta(), and SetError().

void TMVA::TNeuron::PrintPreLinks (  )  const [inline]

Definition at line 130 of file TNeuron.h.

References fLinksIn, and PrintLinks().

Referenced by TMVA::MethodANNBase::PrintNeuron().

void TMVA::TNeuron::PrintPostLinks (  )  const [inline]

Definition at line 131 of file TNeuron.h.

References fLinksOut, and PrintLinks().

Referenced by TMVA::MethodANNBase::PrintNeuron().

virtual void TMVA::TNeuron::Print ( Option_t = ""  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 133 of file TNeuron.h.

References fValue.

void TNeuron::InitNeuron (  )  [private]

Definition at line 71 of file TNeuron.cxx.

References fActivation, fActivationValue, fDEDw, fDelta, fError, fForcedValue, fInputCalculator, fLinksIn, fLinksOut, fValue, kFALSE, NULL, and UNINITIALIZED.

void TNeuron::DeleteLinksArray ( TObjArray *&  links  )  [private]

Definition at line 190 of file TNeuron.cxx.

References TObjArray::At(), TObjArray::GetEntriesFast(), i, and NULL.

Referenced by DeletePreLinks().

void TNeuron::PrintLinks ( TObjArray links  )  const [private]

Definition at line 300 of file TNeuron.cxx.

References TObjArray::At(), Endl, TObjArray::GetEntriesFast(), TMVA::TSynapse::GetLearningRate(), TMVA::TSynapse::GetWeight(), TMVA::TSynapse::GetWeightedDelta(), TMVA::TSynapse::GetWeightedValue(), i, TMVA::kDEBUG, Log(), and NULL.

Referenced by PrintPostLinks(), and PrintPreLinks().

void TNeuron::PrintMessage ( EMsgType  ,
TString  message 
) [private]

Definition at line 332 of file TNeuron.cxx.

References Endl, and Log().

Referenced by CalculateActivationValue(), and SetError().

Int_t TMVA::TNeuron::NumLinks ( TObjArray links  )  const [inline, private]

Definition at line 147 of file TNeuron.h.

References TObjArray::GetEntriesFast(), and NULL.

Referenced by NumPostLinks(), and NumPreLinks().

void TMVA::TNeuron::NullifyLinks ( TObjArray *&  links  )  [inline, private]

Definition at line 150 of file TNeuron.h.

References NULL.

Referenced by SetBiasNeuron(), SetInputNeuron(), and SetOutputNeuron().

MsgLogger& TMVA::TNeuron::Log (  )  const [inline, private]

message logger, static to save resources

Definition at line 167 of file TNeuron.h.

References fgLogger.

Referenced by PrintActivationEqn(), PrintLinks(), and PrintMessage().

void TMVA::TNeuron::ForceValue ( Double_t  value  ) 

void TMVA::TNeuron::CalculateValue (  ) 

void TMVA::TNeuron::CalculateActivationValue (  ) 

void TMVA::TNeuron::CalculateDelta (  ) 

void TMVA::TNeuron::SetActivationEqn ( TActivation activation  ) 

void TMVA::TNeuron::SetInputCalculator ( TNeuronInput calculator  ) 

void TMVA::TNeuron::AddPreLink ( TSynapse pre  ) 

void TMVA::TNeuron::AddPostLink ( TSynapse post  ) 

void TMVA::TNeuron::DeletePreLinks (  ) 

void TMVA::TNeuron::SetError ( Double_t  error  ) 

void TMVA::TNeuron::UpdateSynapsesBatch (  ) 

void TMVA::TNeuron::UpdateSynapsesSequential (  ) 

void TMVA::TNeuron::AdjustSynapseWeights (  ) 

void TMVA::TNeuron::InitSynapseDeltas (  ) 

void TMVA::TNeuron::PrintActivationEqn (  ) 

Double_t TMVA::TNeuron::GetValue (  )  const [inline]

Definition at line 116 of file TNeuron.h.

References fValue.

Double_t TMVA::TNeuron::GetActivationValue (  )  const [inline]

Definition at line 117 of file TNeuron.h.

References fActivationValue.

Double_t TMVA::TNeuron::GetDelta (  )  const [inline]

Definition at line 118 of file TNeuron.h.

References fDelta.

Double_t TMVA::TNeuron::GetDEDw (  )  const [inline]

Definition at line 119 of file TNeuron.h.

References fDEDw.

Int_t TMVA::TNeuron::NumPreLinks (  )  const [inline]

Definition at line 120 of file TNeuron.h.

References fLinksIn, and NumLinks().

Int_t TMVA::TNeuron::NumPostLinks (  )  const [inline]

Definition at line 121 of file TNeuron.h.

References fLinksOut, and NumLinks().

TSynapse* TMVA::TNeuron::PreLinkAt ( Int_t  index  )  const [inline]

Definition at line 122 of file TNeuron.h.

References TObjArray::At(), and fLinksIn.

TSynapse* TMVA::TNeuron::PostLinkAt ( Int_t  index  )  const [inline]

Definition at line 123 of file TNeuron.h.

References TObjArray::At(), and fLinksOut.

void TMVA::TNeuron::SetInputNeuron (  )  [inline]

Definition at line 124 of file TNeuron.h.

References fLinksIn, and NullifyLinks().

void TMVA::TNeuron::SetOutputNeuron (  )  [inline]

Definition at line 125 of file TNeuron.h.

References fLinksOut, and NullifyLinks().

void TMVA::TNeuron::SetBiasNeuron (  )  [inline]

Definition at line 126 of file TNeuron.h.

References fLinksIn, and NullifyLinks().

void TMVA::TNeuron::SetDEDw ( Double_t  DEDw  )  [inline]

Definition at line 127 of file TNeuron.h.

References fDEDw.

Bool_t TMVA::TNeuron::IsInputNeuron (  )  const [inline]

Definition at line 128 of file TNeuron.h.

References fLinksIn, and NULL.

Bool_t TMVA::TNeuron::IsOutputNeuron (  )  const [inline]

Definition at line 129 of file TNeuron.h.

References fLinksOut, and NULL.

void TMVA::TNeuron::PrintPreLinks (  )  const [inline]

Definition at line 130 of file TNeuron.h.

References fLinksIn, and PrintLinks().

void TMVA::TNeuron::PrintPostLinks (  )  const [inline]

Definition at line 131 of file TNeuron.h.

References fLinksOut, and PrintLinks().

virtual void TMVA::TNeuron::Print ( Option_t = ""  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 133 of file TNeuron.h.

References fValue.

void TMVA::TNeuron::InitNeuron (  )  [private]

void TMVA::TNeuron::DeleteLinksArray ( TObjArray *&  links  )  [private]

void TMVA::TNeuron::PrintLinks ( TObjArray links  )  const [private]

void TMVA::TNeuron::PrintMessage ( EMsgType  ,
TString  message 
) [private]

Int_t TMVA::TNeuron::NumLinks ( TObjArray links  )  const [inline, private]

Definition at line 147 of file TNeuron.h.

References TObjArray::GetEntriesFast(), and NULL.

void TMVA::TNeuron::NullifyLinks ( TObjArray *&  links  )  [inline, private]

Definition at line 150 of file TNeuron.h.

References NULL.

MsgLogger& TMVA::TNeuron::Log (  )  const [inline, private]

message logger, static to save resources

Definition at line 167 of file TNeuron.h.

References fgLogger.


Member Data Documentation

TObjArray* TMVA::TNeuron::fLinksIn [private]

Definition at line 155 of file TNeuron.h.

Referenced by AddPreLink(), AdjustSynapseWeights(), DeletePreLinks(), InitNeuron(), InitSynapseDeltas(), IsInputNeuron(), NumPreLinks(), PreLinkAt(), PrintPreLinks(), SetBiasNeuron(), SetInputNeuron(), UpdateSynapsesBatch(), UpdateSynapsesSequential(), and ~TNeuron().

TObjArray* TMVA::TNeuron::fLinksOut [private]

Definition at line 156 of file TNeuron.h.

Referenced by AddPostLink(), CalculateDelta(), InitNeuron(), IsOutputNeuron(), NumPostLinks(), PostLinkAt(), PrintPostLinks(), SetOutputNeuron(), and ~TNeuron().

Double_t TNeuron::fValue [private]

Definition at line 157 of file TNeuron.h.

Referenced by CalculateActivationValue(), CalculateValue(), ForceValue(), GetValue(), InitNeuron(), and Print().

Double_t TNeuron::fActivationValue [private]

Definition at line 158 of file TNeuron.h.

Referenced by CalculateActivationValue(), GetActivationValue(), and InitNeuron().

Double_t TNeuron::fDelta [private]

Definition at line 159 of file TNeuron.h.

Referenced by CalculateDelta(), GetDelta(), and InitNeuron().

Double_t TNeuron::fDEDw [private]

Definition at line 160 of file TNeuron.h.

Referenced by GetDEDw(), InitNeuron(), and SetDEDw().

Double_t TNeuron::fError [private]

Definition at line 161 of file TNeuron.h.

Referenced by CalculateDelta(), InitNeuron(), and SetError().

Bool_t TNeuron::fForcedValue [private]

Definition at line 162 of file TNeuron.h.

Referenced by CalculateValue(), ForceValue(), and InitNeuron().

TActivation* TMVA::TNeuron::fActivation [private]

Definition at line 163 of file TNeuron.h.

Referenced by CalculateActivationValue(), CalculateDelta(), InitNeuron(), PrintActivationEqn(), and SetActivationEqn().

TNeuronInput* TMVA::TNeuron::fInputCalculator [private]

Definition at line 164 of file TNeuron.h.

Referenced by CalculateValue(), InitNeuron(), and SetInputCalculator().

MsgLogger* TMVA::TNeuron::fgLogger [static, private]

Definition at line 166 of file TNeuron.h.

Referenced by Log().

TObjArray* TMVA::TNeuron::fLinksIn [private]

Definition at line 155 of file TNeuron.h.

TObjArray* TMVA::TNeuron::fLinksOut [private]

Definition at line 156 of file TNeuron.h.

TActivation* TMVA::TNeuron::fActivation [private]

Definition at line 163 of file TNeuron.h.

TNeuronInput* TMVA::TNeuron::fInputCalculator [private]

Definition at line 164 of file TNeuron.h.

MsgLogger* TMVA::TNeuron::fgLogger [static, private]

Definition at line 166 of file TNeuron.h.


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