diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 03:15:03 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 03:15:30 +0100 |
commit | 6fd23da97fa9700f59c61a966b4bf7d25fa46b34 (patch) | |
tree | d5fe3a8305a5f57e5b4cedc8300e951c74696cc5 /SingleMLP.hpp |
Diffstat (limited to 'SingleMLP.hpp')
-rw-r--r-- | SingleMLP.hpp | 22 |
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__ |