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