diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2015-08-16 00:18:29 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2015-08-16 00:18:29 +0200 |
commit | 82a21657fb29ae8afba479fb821b47b5eeb608fb (patch) | |
tree | 5643cc274bd050b49ac94f83d347df0d7d2751d7 /include/brain/neural_node.h | |
parent | 43e9f647533d239d68d06fe96867c033dd7504c5 (diff) |
Made neural net recurrent
Diffstat (limited to 'include/brain/neural_node.h')
-rw-r--r-- | include/brain/neural_node.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/include/brain/neural_node.h b/include/brain/neural_node.h index c7b4335..57523eb 100644 --- a/include/brain/neural_node.h +++ b/include/brain/neural_node.h @@ -3,13 +3,9 @@ class NeuralNode { public: - NeuralNode(char type, int id); - - virtual double activation() const = 0; - - char type() const { return _type; } - int id() const { return _id; } -private: - char _type; - int _id; + double activation() const { return _activation; } + bool activationChanged() const { return _activationChanged; } +protected: + double _activation; + bool _activationChanged; }; |