79 if (fPreNeuron == NULL)
80 Log() << kFATAL <<
"<GetWeightedValue> synapse not connected to neuron" <<
Endl;
82 return (fWeight * fPreNeuron->GetActivationValue());
90 if (fPostNeuron == NULL)
91 Log() << kFATAL <<
"<GetWeightedDelta> synapse not connected to neuron" <<
Endl;
93 return fWeight * fPostNeuron->GetDelta();
102 fWeight += -fLearnRate * wDelta;
111 fDelta += fPostNeuron->GetDelta() * fPreNeuron->GetActivationValue();
119 TTHREAD_TLS_DECL_ARG(
MsgLogger,logger,
"TSynapse");
ostringstream derivative to redirect and format output
Synapse class used by TMVA artificial neural network methods.
void SetWeight(Double_t weight)
set synapse weight
Double_t GetWeightedValue()
get output of pre-neuron weighted by synapse weight
Double_t GetWeightedDelta()
get error field of post-neuron weighted by synapse weight
virtual ~TSynapse()
destructor
void AdjustWeight()
adjust the weight based on the error field all ready calculated by CalculateDelta
void CalculateDelta()
calculate/adjust the error field for this synapse
MsgLogger & Endl(MsgLogger &ml)
static const Int_t fgUNINITIALIZED