24 #ifndef ROOT_TMVA_TSynapse
25 #define ROOT_TMVA_TSynapse
44 class TSynapse :
public TObject {
52 void SetWeight(Double_t weight);
55 Double_t GetWeight() {
return fWeight; }
58 void SetLearningRate(Double_t rate) { fLearnRate = rate; }
61 Double_t GetLearningRate() {
return fLearnRate; }
64 void DecayLearningRate(Double_t rate){ fLearnRate *= (1-rate); }
67 void SetPreNeuron(TNeuron* pre) { fPreNeuron = pre; }
70 void SetPostNeuron(TNeuron* post) { fPostNeuron = post; }
73 Double_t GetWeightedValue();
76 Double_t GetWeightedDelta();
82 void CalculateDelta();
85 void InitDelta() { fDelta = 0.0; fCount = 0; }
87 void SetDEDw(Double_t DEDw) { fDEDw = DEDw; }
88 Double_t GetDEDw() {
return fDEDw; }
89 Double_t GetDelta() {
return fDelta; }
101 MsgLogger& Log()
const;
103 ClassDef(TSynapse,0);