24 #ifndef ROOT_TMVA_TNeuron
25 #define ROOT_TMVA_TNeuron
122 std::cout <<
fValue << std::endl;
136 if (links ==
nullptr)
return 0;
140 if (links !=
nullptr) {
delete links; links =
nullptr; }
Double_t GetDelta() const
void SetDEDw(Double_t DEDw)
Double_t GetValue() const
Synapse class used by TMVA artificial neural network methods.
void PrintActivationEqn()
print activation equation, for debugging
void ForceValue(Double_t value)
force the value, typically for input and bias neurons
void DeletePreLinks()
delete all pre-links
void PrintPostLinks() const
Int_t GetEntriesFast() const
void UpdateSynapsesSequential()
update the pre-synapses for each neuron (input neuron has no pre-synapse) this method should only be ...
Bool_t IsOutputNeuron() const
void SetInputCalculator(TNeuronInput *calculator)
set input calculator
void NullifyLinks(TObjArray *&links)
virtual ~TNeuron()
destructor
virtual void Print(Option_t *="") const
This method must be overridden when a class wants to print itself.
void InitNeuron()
initialize the neuron, most variables still need to be set via setters
void CalculateDelta()
calculate error field
#define ClassDef(name, id)
Int_t NumLinks(TObjArray *links) const
Neuron class used by TMVA artificial neural network methods.
void AddPostLink(TSynapse *post)
add synapse as a post-link to this neuron
void AdjustSynapseWeights()
adjust the pre-synapses' weights for each neuron (input neuron has no pre-synapse) this method should...
void CalculateActivationValue()
calculate neuron activation/output
Double_t GetActivationValue() const
Int_t NumPostLinks() const
void UpdateSynapsesBatch()
update and adjust the pre-synapses for each neuron (input neuron has no pre-synapse) this method shou...
Double_t fActivationValue
void AddPreLink(TSynapse *pre)
add synapse as a pre-link to this neuron
TNeuron()
standard constructor
Bool_t IsInputNeuron() const
void PrintPreLinks() const
TActivation * fActivation
void InitSynapseDeltas()
initialize the error fields of all pre-neurons this method should only be called in batch mode ...
void PrintLinks(TObjArray *links) const
print an array of TSynapses, for debugging
void CalculateValue()
calculate neuron input
void PrintMessage(EMsgType, TString message)
print message, for debugging
ostringstream derivative to redirect and format output
Mother of all ROOT objects.
TSynapse * PostLinkAt(Int_t index) const
Int_t NumPreLinks() const
void DeleteLinksArray(TObjArray *&links)
delete an array of TSynapses
void SetError(Double_t error)
set error, this should only be done for an output neuron
TObject * At(Int_t idx) const
Interface for TNeuron activation function classes.
TNeuronInput * fInputCalculator
TSynapse * PreLinkAt(Int_t index) const
void SetActivationEqn(TActivation *activation)
set activation equation