From 6fd23da97fa9700f59c61a966b4bf7d25fa46b34 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 03:15:03 +0100 Subject: initial commit --- NeuralNet.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 NeuralNet.hpp (limited to 'NeuralNet.hpp') diff --git a/NeuralNet.hpp b/NeuralNet.hpp new file mode 100644 index 0000000..70d3e87 --- /dev/null +++ b/NeuralNet.hpp @@ -0,0 +1,26 @@ +#ifndef __NEURALNET_HPP__ +#define __NEURALNET_HPP__ + +#include "NodeLayer.hpp" + +class NeuralNet +{ +public: + virtual void setChromosome(const Chromosome &chromosome) = 0; + virtual Chromosome getChromosome() const = 0; + virtual unsigned getChromosomeSize() const = 0; + + virtual std::vector io(const std::vector &inputs) = 0; + + unsigned getInputCount() const { return m_inputCount; } + unsigned getHiddenNodeCount() const { return m_hiddenNodeCount; } + unsigned getOutputCount() const { return m_outputCount; } + +protected: + unsigned m_inputCount = 0; + unsigned m_hiddenNodeCount = 0; + unsigned m_outputCount = 0; + NodeClass m_nodeClass; +}; + +#endif // __NEURALNET_HPP__ -- cgit v1.2.1