Graine
Génération procédurale de créatures et apprentissage par réseaux de neurones.
NeuronNetwork.hpp
Go to the documentation of this file.
1 #ifndef NEURON_NETWORK
2 #define NEURON_NETWORK
3 
4 #include <iostream>
5 #include <string>
6 #include <vector>
7 #include "NeuronLayer.hpp"
8 #include "../exception/BadNumberOfInputException.hpp"
9 #include "../exception/NotSameStructException.hpp"
10 
12 
13  private:
14  int nbInput;
15  int nbOutput;
16  int nbHiddenLayer;
17  int nbNeuronPerLayer;
18  std::vector<NeuronLayer> layers;
19 
20  public:
21  NeuronNetwork(int nbInput, int nbOutput, int nbHiddenLayer, int nbNeuronPerLayer);
22  NeuronNetwork(NeuronNetwork father, NeuronNetwork mother);
23  std::vector<double> update(std::vector<double>& firstInputs);
24  static bool asSameStruct(NeuronNetwork net1, NeuronNetwork& net2);
25  /*int getNbInput() const;
26  int getNbOutput() const;
27  int getNbHiddenLayer() const;
28  int getNeuronPerLayer() const;*/
29 };
30 
31 #endif
std::vector< double > update(std::vector< double > &firstInputs)
Function allowing to change (update) inputs value.
Definition: NeuronNetwork.cpp:51
NeuronNetwork(int nbInput, int nbOutput, int nbHiddenLayer, int nbNeuronPerLayer)
Constructor of NeuronNetwork.
Definition: NeuronNetwork.cpp:14
static bool asSameStruct(NeuronNetwork net1, NeuronNetwork &net2)
Check if 2 NeuronNetwork have the same structure.
Definition: NeuronNetwork.cpp:67
Definition: NeuronNetwork.hpp:11