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;
148 if (links ==
nullptr)
return 0;
152 if (links !=
nullptr) {
delete links; links =
nullptr; }
void SetDEDw(Double_t DEDw)
void ForceValue(Double_t value)
force the value, typically for input and bias neurons
Bool_t IsOutputNeuron() const
Bool_t IsInputNeuron() const
Double_t GetActivationValue() const
TObject * At(Int_t idx) 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
void AdjustSynapseWeights()
adjust the pre-synapses' weights for each neuron (input neuron has no pre-synapse) this method should...
#define ClassDef(name, id)
TSynapse * PostLinkAt(Int_t index) const
Int_t NumPreLinks() const
void PrintLinks(TObjArray *links) const
print an array of TSynapses, for debugging
TSynapse * PreLinkAt(Int_t index) const
Int_t NumPostLinks() const
Double_t fActivationValue
virtual void Print(Option_t *="") const
This method must be overridden when a class wants to print itself.
Double_t GetDelta() const
Int_t GetEntriesFast() const
void PrintActivationEqn()
print activation equation, for debugging
void PrintPostLinks() const
TActivation * fActivation
Double_t GetValue() const
void SetError(Double_t error)
set error, this should only be done for an output neuron
void PrintPreLinks() const
void CalculateValue()
calculate neuron input
TNeuron()
standard constructor
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
Abstract ClassifierFactory template that handles arbitrary types.
void AddPostLink(TSynapse *post)
add synapse as a post-link to this neuron
void AddPreLink(TSynapse *pre)
add synapse as a pre-link to this neuron
void DeletePreLinks()
delete all pre-links
void CalculateDelta()
calculate error field
Int_t NumLinks(TObjArray *links) const
void SetInputCalculator(TNeuronInput *calculator)
set input calculator
TNeuronInput * fInputCalculator