#include <TNeuron.h>
Inheritance diagram for TNeuron:
Public Types | |
enum | ENeuronType |
enum | ENeuronType |
Public Member Functions | |
TNeuron (ENeuronType type=kSigmoid, const char *name="", const char *title="", const char *extF="", const char *extD="") | |
virtual | ~TNeuron () |
TSynapse * | GetPre (Int_t n) const |
TSynapse * | GetPost (Int_t n) const |
TNeuron * | GetInLayer (Int_t n) const |
TTreeFormula * | UseBranch (TTree *, const char *) |
Double_t | GetInput () const |
Double_t | GetValue () const |
Double_t | GetDerivative () const |
Double_t | GetError () const |
Double_t | GetTarget () const |
Double_t | GetDeDw () const |
Double_t | GetBranch () const |
ENeuronType | GetType () const |
void | SetWeight (Double_t w) |
Double_t | GetWeight () const |
void | SetNormalisation (Double_t mean, Double_t RMS) |
const Double_t * | GetNormalisation () const |
void | SetNewEvent () const |
void | SetDEDw (Double_t in) |
Double_t | GetDEDw () const |
void | ForceExternalValue (Double_t value) |
void | AddInLayer (TNeuron *) |
TNeuron (ENeuronType type=kSigmoid, const char *name="", const char *title="", const char *extF="", const char *extD="") | |
virtual | ~TNeuron () |
TSynapse * | GetPre (Int_t n) const |
TSynapse * | GetPost (Int_t n) const |
TNeuron * | GetInLayer (Int_t n) const |
TTreeFormula * | UseBranch (TTree *, const char *) |
Double_t | GetInput () const |
Double_t | GetValue () const |
Double_t | GetDerivative () const |
Double_t | GetError () const |
Double_t | GetTarget () const |
Double_t | GetDeDw () const |
Double_t | GetBranch () const |
ENeuronType | GetType () const |
void | SetWeight (Double_t w) |
Double_t | GetWeight () const |
void | SetNormalisation (Double_t mean, Double_t RMS) |
const Double_t * | GetNormalisation () const |
void | SetNewEvent () const |
void | SetDEDw (Double_t in) |
Double_t | GetDEDw () const |
void | ForceExternalValue (Double_t value) |
void | AddInLayer (TNeuron *) |
Protected Member Functions | |
Double_t | Sigmoid (Double_t x) const |
Double_t | DSigmoid (Double_t x) const |
void | AddPre (TSynapse *) |
void | AddPost (TSynapse *) |
Double_t | Sigmoid (Double_t x) const |
Double_t | DSigmoid (Double_t x) const |
void | AddPre (TSynapse *) |
void | AddPost (TSynapse *) |
Private Member Functions | |
TNeuron (const TNeuron &) | |
TNeuron & | operator= (const TNeuron &) |
TNeuron (const TNeuron &) | |
TNeuron & | operator= (const TNeuron &) |
Private Attributes | |
TObjArray | fpre |
TObjArray | fpost |
TObjArray | flayer |
Double_t | fWeight |
Double_t | fNorm [2] |
ENeuronType | fType |
TFormula * | fExtF |
TFormula * | fExtD |
TTreeFormula * | fFormula |
Int_t | fIndex |
formula to be used for inputs and outputs | |
Bool_t | fNewInput |
index in the formula | |
Double_t | fInput |
do we need to compute fInput again ? | |
Bool_t | fNewValue |
buffer containing the last neuron input | |
Double_t | fValue |
do we need to compute fValue again ? | |
Bool_t | fNewDeriv |
buffer containing the last neuron output | |
Double_t | fDerivative |
do we need to compute fDerivative again ? | |
Bool_t | fNewDeDw |
buffer containing the last neuron derivative | |
Double_t | fDeDw |
do we need to compute fDeDw again ? | |
Double_t | fDEDw |
buffer containing the last derivative of the error | |
TFormula * | fExtF |
TFormula * | fExtD |
TTreeFormula * | fFormula |
Friends | |
class | TSynapse |
Definition at line 48 of file TNeuron.h.
enum TNeuron::ENeuronType |
enum TNeuron::ENeuronType |
TNeuron::TNeuron | ( | ENeuronType | type = kSigmoid , |
|
const char * | name = "" , |
|||
const char * | title = "" , |
|||
const char * | extF = "" , |
|||
const char * | extD = "" | |||
) |
TNeuron::TNeuron | ( | const TNeuron & | ) | [private] |
TNeuron::TNeuron | ( | ENeuronType | type = kSigmoid , |
|
const char * | name = "" , |
|||
const char * | title = "" , |
|||
const char * | extF = "" , |
|||
const char * | extD = "" | |||
) |
TNeuron::TNeuron | ( | const TNeuron & | ) | [private] |
Definition at line 58 of file TNeuron.h.
References TObjArray::At(), and fpre.
Referenced by TMultiLayerPerceptron::Export().
Definition at line 60 of file TNeuron.h.
References TObjArray::At(), and flayer.
Referenced by TMultiLayerPerceptron::Export().
TTreeFormula * TNeuron::UseBranch | ( | TTree * | , | |
const char * | ||||
) |
Definition at line 868 of file TNeuron.cxx.
References fFormula, fIndex, fNorm, Form(), TH1::GetMean(), TTreeFormula::GetNdata(), TH1::GetRMS(), TRegexp::Index(), len, val, and TObject::Warning().
Referenced by TMultiLayerPerceptron::AttachData().
Double_t TNeuron::GetInput | ( | ) | const |
Definition at line 916 of file TNeuron.cxx.
References fInput, fNewInput, fpre, fWeight, TObjArray::GetEntriesFast(), i, and TObjArray::UncheckedAt().
Referenced by GetValue().
Double_t TNeuron::GetValue | ( | ) | const |
Definition at line 936 of file TNeuron.cxx.
References TFormula::Eval(), TMath::Exp(), fExtF, flayer, fNewValue, fNorm, fpre, fType, fValue, GetBranch(), TObjArray::GetEntriesFast(), GetInput(), i, kExternal, kGauss, kLinear, kOff, kSigmoid, kSoftmax, kTanh, nentries, Sigmoid(), TMath::TanH(), TObjArray::UncheckedAt(), and value.
Referenced by TSynapse::GetDeDw(), GetDerivative(), GetError(), and TSynapse::GetValue().
Double_t TNeuron::GetDerivative | ( | ) | const |
Definition at line 999 of file TNeuron.cxx.
References DSigmoid(), TFormula::Eval(), TMath::Exp(), fDerivative, fExtD, fNewDeriv, fpre, fType, fWeight, TObjArray::GetEntriesFast(), GetValue(), i, kExternal, kGauss, kLinear, kOff, kSigmoid, kSoftmax, kTanh, nentries, TMath::TanH(), and TObjArray::UncheckedAt().
Referenced by GetDeDw().
Double_t TNeuron::GetError | ( | ) | const |
Definition at line 1050 of file TNeuron.cxx.
References fNorm, fpost, GetBranch(), TObjArray::GetEntriesFast(), and GetValue().
Referenced by GetDeDw().
Double_t TNeuron::GetTarget | ( | ) | const |
Definition at line 1060 of file TNeuron.cxx.
References fNorm, fpost, GetBranch(), and TObjArray::GetEntriesFast().
Double_t TNeuron::GetDeDw | ( | ) | const |
Definition at line 1070 of file TNeuron.cxx.
References fDeDw, fNewDeDw, fpost, fType, GetDerivative(), TObjArray::GetEntriesFast(), GetError(), i, kSoftmax, and TObjArray::UncheckedAt().
Referenced by TMultiLayerPerceptron::ComputeDEDw(), TSynapse::GetDeDw(), and TMultiLayerPerceptron::MLP_Stochastic().
Double_t TNeuron::GetBranch | ( | ) | const |
Definition at line 906 of file TNeuron.cxx.
References TTreeFormula::EvalInstance(), fFormula, fIndex, and isnan().
Referenced by GetError(), GetTarget(), and GetValue().
TNeuron::ENeuronType TNeuron::GetType | ( | ) | const |
Definition at line 861 of file TNeuron.cxx.
References fType.
Referenced by TMultiLayerPerceptron::Export().
void TNeuron::SetWeight | ( | Double_t | w | ) |
Definition at line 1129 of file TNeuron.cxx.
References fWeight.
Referenced by TMultiLayerPerceptron::LoadWeights(), TMultiLayerPerceptron::MLP_Batch(), TMultiLayerPerceptron::MLP_Line(), TMultiLayerPerceptron::MLP_Stochastic(), and TMultiLayerPerceptron::Randomize().
Double_t TNeuron::GetWeight | ( | ) | const [inline] |
Definition at line 71 of file TNeuron.h.
References fWeight.
Referenced by TMultiLayerPerceptron::Export(), TMultiLayerPerceptron::LineSearch(), TMultiLayerPerceptron::MLP_Batch(), and TMultiLayerPerceptron::MLP_Stochastic().
Definition at line 1118 of file TNeuron.cxx.
References fNorm.
Referenced by TMultiLayerPerceptron::AttachData(), and TMultiLayerPerceptron::LoadWeights().
const Double_t* TNeuron::GetNormalisation | ( | ) | const [inline] |
Definition at line 73 of file TNeuron.h.
References fNorm.
Referenced by TMultiLayerPerceptron::Export().
void TNeuron::SetNewEvent | ( | ) | const |
void TNeuron::SetDEDw | ( | Double_t | in | ) |
Definition at line 1149 of file TNeuron.cxx.
References fDEDw.
Referenced by TMultiLayerPerceptron::ComputeDEDw().
Double_t TNeuron::GetDEDw | ( | ) | const [inline] |
Definition at line 76 of file TNeuron.h.
References fDEDw.
Referenced by TMultiLayerPerceptron::BFGSDir(), TMultiLayerPerceptron::ComputeDEDw(), TMultiLayerPerceptron::ConjugateGradientsDir(), TMultiLayerPerceptron::DerivDir(), TMultiLayerPerceptron::MLP_Batch(), TMultiLayerPerceptron::SetGammaDelta(), TMultiLayerPerceptron::SteepestDir(), and TMultiLayerPerceptron::Train().
void TNeuron::ForceExternalValue | ( | Double_t | value | ) |
Definition at line 1110 of file TNeuron.cxx.
References fNewValue, fNorm, and fValue.
Referenced by TMultiLayerPerceptron::Evaluate().
void TNeuron::AddInLayer | ( | TNeuron * | ) |
Definition at line 851 of file TNeuron.cxx.
References TObjArray::AddLast(), TObjArray::Expand(), flayer, TObjArray::GetEntriesFast(), and TCollection::GetSize().
Referenced by TMultiLayerPerceptron::BuildLastLayer(), and TMultiLayerPerceptron::BuildOneHiddenLayer().
Definition at line 82 of file TNeuron.cxx.
References TMath::Exp(), and i.
Referenced by GetValue().
Definition at line 815 of file TNeuron.cxx.
References TMath::Abs(), and TMath::Exp().
Referenced by GetDerivative().
void TNeuron::AddPre | ( | TSynapse * | ) | [protected] |
Definition at line 829 of file TNeuron.cxx.
References TObjArray::AddLast(), TObjArray::Expand(), fpre, TObjArray::GetEntriesFast(), and TCollection::GetSize().
Referenced by TSynapse::SetPost(), and TSynapse::TSynapse().
void TNeuron::AddPost | ( | TSynapse * | ) | [protected] |
Definition at line 840 of file TNeuron.cxx.
References TObjArray::AddLast(), TObjArray::Expand(), fpost, TObjArray::GetEntriesFast(), and TCollection::GetSize().
Referenced by TSynapse::SetPre(), and TSynapse::TSynapse().
TTreeFormula* TNeuron::UseBranch | ( | TTree * | , | |
const char * | ||||
) |
Double_t TNeuron::GetInput | ( | ) | const |
Double_t TNeuron::GetValue | ( | ) | const |
Double_t TNeuron::GetDerivative | ( | ) | const |
Double_t TNeuron::GetError | ( | ) | const |
Double_t TNeuron::GetTarget | ( | ) | const |
Double_t TNeuron::GetDeDw | ( | ) | const |
Double_t TNeuron::GetBranch | ( | ) | const |
ENeuronType TNeuron::GetType | ( | ) | const |
void TNeuron::SetWeight | ( | Double_t | w | ) |
Double_t TNeuron::GetWeight | ( | ) | const [inline] |
const Double_t* TNeuron::GetNormalisation | ( | ) | const [inline] |
void TNeuron::SetNewEvent | ( | ) | const |
void TNeuron::SetDEDw | ( | Double_t | in | ) |
Double_t TNeuron::GetDEDw | ( | ) | const [inline] |
void TNeuron::ForceExternalValue | ( | Double_t | value | ) |
void TNeuron::AddInLayer | ( | TNeuron * | ) |
void TNeuron::AddPre | ( | TSynapse * | ) | [protected] |
void TNeuron::AddPost | ( | TSynapse * | ) | [protected] |
TObjArray TNeuron::fpre [private] |
Definition at line 90 of file TNeuron.h.
Referenced by AddPre(), GetDerivative(), GetInput(), GetPre(), and GetValue().
TObjArray TNeuron::fpost [private] |
Definition at line 91 of file TNeuron.h.
Referenced by AddPost(), GetDeDw(), GetError(), GetPost(), and GetTarget().
TObjArray TNeuron::flayer [private] |
Double_t TNeuron::fWeight [private] |
Definition at line 93 of file TNeuron.h.
Referenced by GetDerivative(), GetInput(), GetWeight(), and SetWeight().
Double_t TNeuron::fNorm [private] |
Definition at line 94 of file TNeuron.h.
Referenced by ForceExternalValue(), GetError(), GetNormalisation(), GetTarget(), GetValue(), SetNormalisation(), and UseBranch().
ENeuronType TNeuron::fType [private] |
Definition at line 95 of file TNeuron.h.
Referenced by GetDeDw(), GetDerivative(), GetType(), and GetValue().
TFormula* TNeuron::fExtF [private] |
TFormula* TNeuron::fExtD [private] |
TTreeFormula* TNeuron::fFormula [private] |
Int_t TNeuron::fIndex [private] |
formula to be used for inputs and outputs
Definition at line 101 of file TNeuron.h.
Referenced by GetBranch(), and UseBranch().
Bool_t TNeuron::fNewInput [private] |
Double_t TNeuron::fInput [private] |
do we need to compute fInput again ?
Definition at line 103 of file TNeuron.h.
Referenced by GetInput().
Bool_t TNeuron::fNewValue [private] |
buffer containing the last neuron input
Definition at line 104 of file TNeuron.h.
Referenced by ForceExternalValue(), and GetValue().
Double_t TNeuron::fValue [private] |
do we need to compute fValue again ?
Definition at line 105 of file TNeuron.h.
Referenced by ForceExternalValue(), and GetValue().
Bool_t TNeuron::fNewDeriv [private] |
buffer containing the last neuron output
Definition at line 106 of file TNeuron.h.
Referenced by GetDerivative().
Double_t TNeuron::fDerivative [private] |
do we need to compute fDerivative again ?
Definition at line 107 of file TNeuron.h.
Referenced by GetDerivative().
Bool_t TNeuron::fNewDeDw [private] |
Double_t TNeuron::fDeDw [private] |
Double_t TNeuron::fDEDw [private] |
TFormula* TNeuron::fExtF [private] |
TFormula* TNeuron::fExtD [private] |
TTreeFormula* TNeuron::fFormula [private] |