diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2015-10-17 17:02:24 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2015-10-17 17:02:24 +0200 |
commit | 550caeee11086bd56db69176b3149ddfa160ee30 (patch) | |
tree | c935b819a4ad165fbef567db67ad9ddcca62df04 /include/brain/neural_link.h | |
parent | 31a82b0359515ae579514024b22873fb708c3f53 (diff) |
Reverted to a simple decision tree
Turns out it's much easier to write a bot by hand with if statements.
Diffstat (limited to 'include/brain/neural_link.h')
-rw-r--r-- | include/brain/neural_link.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/brain/neural_link.h b/include/brain/neural_link.h index b9cf4d1..14f58b9 100644 --- a/include/brain/neural_link.h +++ b/include/brain/neural_link.h @@ -7,6 +7,9 @@ class NeuralLink public: NeuralLink(NeuralNode* input, double weight); double weightedActivation() const; + + double weight() const { return _weight; } + std::string inputIdentifier() const { return _input->identifier(); } private: NeuralNode* _input; |