aboutsummaryrefslogtreecommitdiff
path: root/DualMLP.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'DualMLP.hpp')
-rw-r--r--DualMLP.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/DualMLP.hpp b/DualMLP.hpp
new file mode 100644
index 0000000..2c8feca
--- /dev/null
+++ b/DualMLP.hpp
@@ -0,0 +1,23 @@
+#ifndef __DUALMLP_HPP__
+#define __DUALMLP_HPP__
+
+#include "NeuralNet.hpp"
+
+class DualMLP : public NeuralNet
+{
+public:
+ DualMLP(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_firstHiddenLayer;
+ NodeLayer m_secondHiddenLayer;
+ NodeLayer m_outputLayer;
+};
+
+#endif // __DUALMLP_HPP__