From 82a21657fb29ae8afba479fb821b47b5eeb608fb Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 16 Aug 2015 00:18:29 +0200 Subject: Made neural net recurrent --- include/brain/bias_node.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/brain/bias_node.h') 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; + } }; -- cgit v1.2.3