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; }
void SetDEDw(Double_t DEDw)
Synapse class used by TMVA artificial neural network methods.
Bool_t IsOutputNeuron() const
void PrintActivationEqn()
print activation equation, for debugging
Bool_t IsInputNeuron() const
void ForceValue(Double_t value)
force the value, typically for input and bias neurons
void DeletePreLinks()
delete all pre-links
void PrintLinks(TObjArray *links) const
print an array of TSynapses, for debugging
Double_t GetActivationValue() const
void UpdateSynapsesSequential()
update the pre-synapses for each neuron (input neuron has no pre-synapse) this method should only be ...
TObject * At(Int_t idx) const
void SetInputCalculator(TNeuronInput *calculator)
set input calculator
void NullifyLinks(TObjArray *&links)
virtual ~TNeuron()
destructor
void InitNeuron()
initialize the neuron, most variables still need to be set via setters
void CalculateDelta()
calculate error field
#define ClassDef(name, id)
TSynapse * PostLinkAt(Int_t index) const
Neuron class used by TMVA artificial neural network methods.
void AddPostLink(TSynapse *post)
add synapse as a post-link to this neuron
Int_t NumPreLinks() const
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
TSynapse * PreLinkAt(Int_t index) 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
virtual void Print(Option_t *="") const
This method must be overridden when a class wants to print itself.
void AddPreLink(TSynapse *pre)
add synapse as a pre-link to this neuron
Double_t GetDelta() const
Int_t GetEntriesFast() const
void PrintPostLinks() const
TNeuron()
standard constructor
TActivation * fActivation
void InitSynapseDeltas()
initialize the error fields of all pre-neurons this method should only be called in batch mode ...
Double_t GetValue() const
void PrintPreLinks() const
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.
Abstract ClassifierFactory template that handles arbitrary types.
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
Interface for TNeuron activation function classes.
Int_t NumLinks(TObjArray *links) const
TNeuronInput * fInputCalculator
void SetActivationEqn(TActivation *activation)
set activation equation