24 #ifndef ROOT_TMVA_TNeuron
25 #define ROOT_TMVA_TNeuron
40 #ifndef ROOT_TObjArray
47 #ifndef ROOT_TMVA_TSynapse
50 #ifndef ROOT_TMVA_TActivation
53 #ifndef ROOT_TMVA_Types
134 std::cout <<
fValue << std::endl;
151 if (links !=
NULL)
delete links; links =
NULL;
Double_t GetDelta() const
void SetDEDw(Double_t DEDw)
void ForceValue(Double_t value)
force the value, typically for input and bias neurons
Double_t GetValue() const
void PrintLinks(TObjArray *links) const
print an array of TSynapses, for debugging
void PrintPostLinks() const
Int_t GetEntriesFast() const
Bool_t IsOutputNeuron() const
void SetActivationEqn(TActivation *activation)
set activation equation
void InitSynapseDeltas()
initialize the error fields of all pre-neurons this method should only be called in batch mode ...
void NullifyLinks(TObjArray *&links)
void DeleteLinksArray(TObjArray *&links)
delete an array of TSynapses
virtual void Print(Option_t *="") const
This method must be overridden when a class wants to print itself.
void AdjustSynapseWeights()
adjust the pre-synapses' weights for each neuron (input neuron has no pre-synapse) this method should...
#define ClassDef(name, id)
Int_t NumLinks(TObjArray *links) const
Double_t GetActivationValue() const
Int_t NumPostLinks() const
Double_t fActivationValue
void PrintActivationEqn()
print activation equation, for debugging
Bool_t IsInputNeuron() const
void PrintPreLinks() const
TActivation * fActivation
void SetError(Double_t error)
set error, this should only be done for an output neuron
void CalculateValue()
calculate neuron input
void PrintMessage(EMsgType, TString message)
print message, for debugging
void UpdateSynapsesSequential()
update the pre-synapses for each neuron (input neuron has no pre-synapse) this method should only be ...
void UpdateSynapsesBatch()
update and adjust the pre-synapses for each neuron (input neuron has no pre-synapse) this method shou...
Mother of all ROOT objects.
void CalculateActivationValue()
calculate neuron activation/output
void AddPostLink(TSynapse *post)
add synapse as a post-link to this neuron
TSynapse * PostLinkAt(Int_t index) const
Int_t NumPreLinks() const
TObject * At(Int_t idx) const
void AddPreLink(TSynapse *pre)
add synapse as a pre-link to this neuron
void DeletePreLinks()
delete all pre-links
void CalculateDelta()
calculate error field
void SetInputCalculator(TNeuronInput *calculator)
set input calculator
TNeuronInput * fInputCalculator
TSynapse * PreLinkAt(Int_t index) const