aboutsummaryrefslogtreecommitdiff
path: root/SimpleRN.hpp
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 03:15:03 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 03:15:30 +0100
commit6fd23da97fa9700f59c61a966b4bf7d25fa46b34 (patch)
treed5fe3a8305a5f57e5b4cedc8300e951c74696cc5 /SimpleRN.hpp
initial commitHEADmaster
Diffstat (limited to 'SimpleRN.hpp')
-rw-r--r--SimpleRN.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/SimpleRN.hpp b/SimpleRN.hpp
new file mode 100644
index 0000000..6d0cc2c
--- /dev/null
+++ b/SimpleRN.hpp
@@ -0,0 +1,17 @@
+#ifndef __SIMPLERN_HPP__
+#define __SIMPLERN_HPP__
+
+#include "SingleMLP.hpp"
+
+class SimpleRN : public SingleMLP
+{
+public:
+ SimpleRN(unsigned inputCount, unsigned hiddenNodeCount, unsigned outputCount, NodeClass nodeClass, bool zeroed = false);
+
+ std::vector<float> io(const std::vector<float> &inputs);
+
+private:
+ std::vector<float> m_context;
+};
+
+#endif // __SIMPLERN_HPP__