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 /DualMLP.hpp |
Diffstat (limited to 'DualMLP.hpp')
-rw-r--r-- | DualMLP.hpp | 23 |
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__ |