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/bias_node.h | |
parent | 43e9f647533d239d68d06fe96867c033dd7504c5 (diff) |
Made neural net recurrent
Diffstat (limited to 'include/brain/bias_node.h')
-rw-r--r-- | include/brain/bias_node.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/brain/bias_node.h b/include/brain/bias_node.h index 501a0a0..8920eb3 100644 --- a/include/brain/bias_node.h +++ b/include/brain/bias_node.h @@ -5,6 +5,9 @@ class BiasNode: public NeuralNode { public: - BiasNode(); - virtual double activation() const { return 1; } + BiasNode() + { + _activation = 1; + _activationChanged = false; + } }; |