diff options
| author | Gaspard Coulet <gaspard.coulet@mines-ales.org> | 2021-04-28 23:12:36 +0200 |
|---|---|---|
| committer | Gaspard Coulet <gaspard.coulet@mines-ales.org> | 2021-04-28 23:12:36 +0200 |
| commit | b4c345e6a5fa929ba20eac19183b9c777055f52d (patch) | |
| tree | 23a0232f2526c5ab7f53391609a8a0a5960865f0 /Layer/Layer.h | |
Initial commit
Diffstat (limited to 'Layer/Layer.h')
| -rw-r--r-- | Layer/Layer.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Layer/Layer.h b/Layer/Layer.h new file mode 100644 index 0000000..501ed86 --- /dev/null +++ b/Layer/Layer.h @@ -0,0 +1,32 @@ +#ifndef _LAYER_H_ +#define _LAYER_H_ +#include"../Neurone/Neurone.h" +#include"../Neurone/NeuroneB.h" +#include "../Neurone/FonctionActivation.h" +#include<vector> + +class Layer { +public: + enum TypeLayer { + INPUT, + OUTPUT, + HIDDEN + }; +protected: + double k; + int nbNeurone; + std::vector<Neurone *> membres; + std::vector<double> input; + std::vector<double> output; + TypeLayer type; +public: + Layer(); + Layer(TypeLayer,int,int,FonctionActivation::EnumFonctionActivation); + Neurone * getNeurone(int index); + virtual std::vector<double> fire(std::vector<double>, double); + int getNbNeurones(); + std::vector<double> getInput(); + std::vector<double> getOutput(); + void printWeight(); +}; + #endif |
