From 6fd23da97fa9700f59c61a966b4bf7d25fa46b34 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 03:15:03 +0100 Subject: initial commit --- DualMLP.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 DualMLP.hpp (limited to 'DualMLP.hpp') 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 io(const std::vector &inputs); + +protected: + NodeLayer m_firstHiddenLayer; + NodeLayer m_secondHiddenLayer; + NodeLayer m_outputLayer; +}; + +#endif // __DUALMLP_HPP__ -- cgit v1.2.1