31 #ifndef ROOT_TMVA_TNeuron
35 #ifndef ROOT_TMVA_MsgLogger
81 if (fPreNeuron ==
NULL)
82 Log() <<
kFATAL <<
"<GetWeightedValue> synapse not connected to neuron" <<
Endl;
84 return (fWeight * fPreNeuron->GetActivationValue());
92 if (fPostNeuron ==
NULL)
93 Log() <<
kFATAL <<
"<GetWeightedDelta> synapse not connected to neuron" <<
Endl;
95 return fWeight * fPostNeuron->GetDelta();
104 fWeight += -fLearnRate * wDelta;
113 fDelta += fPostNeuron->GetDelta() * fPreNeuron->GetActivationValue();
121 TTHREAD_TLS_DECL_ARG(
MsgLogger,logger,
"TSynapse");
MsgLogger & Endl(MsgLogger &ml)
void AdjustWeight()
adjust the weight based on the error field all ready calculated by CalculateDelta ...
virtual ~TSynapse()
destructor
void CalculateDelta()
calculate/adjust the error field for this synapse
ClassImp(TSynapse) TSynapse
Default constructor.
void SetWeight(Double_t weight)
set synapse weight
Double_t GetWeightedDelta()
get error field of post-neuron weighted by synapse weight
Double_t GetWeightedValue()
get output of pre-neuron weighted by synapse weight
static const Int_t fgUNINITIALIZED