aboutsummaryrefslogtreecommitdiff
path: root/SingleMLP.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'SingleMLP.hpp')
-rw-r--r--SingleMLP.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/SingleMLP.hpp b/SingleMLP.hpp
new file mode 100644
index 0000000..79395f8
--- /dev/null
+++ b/SingleMLP.hpp
@@ -0,0 +1,22 @@
+#ifndef __SINGLEMLP_HPP__
+#define __SINGLEMLP_HPP__
+
+#include "NeuralNet.hpp"
+
+class SingleMLP : public NeuralNet
+{
+public:
+ SingleMLP(unsigned inputCount, unsigned hiddenNodeCount, unsigned outputCount, NodeClass nodeClass, bool zeroed = false);
+
+ void setChromosome(const Chromosome &chromosome);
+ Chromosome getChromosome() const;
+ unsigned getChromosomeSize() const;
+
+ virtual std::vector<float> io(const std::vector<float> &inputs);
+
+protected:
+ NodeLayer m_hiddenLayer;
+ NodeLayer m_outputLayer;
+};
+
+#endif // __SINGLEMLP_HPP__