NeuralNetwork
 Tudo Estruturas de dados Funções Páginas
network.h
1 #ifndef NETWORK_H
2 #define NETWORK_H
3 
4 #define LENGTH_X 7
5 #define LENGTH_Y 5
6 #include <map>
7 #include <vector>
8 #include "neuron.h"
9 #include "logwindow.h"
10 
11 #include <stdlib.h>
12 #include <stdio.h>
13 
14 using namespace std;
15 
16 class Network
17 {
18  public:
19  vector < vector <Neuron> > myLayers;
20 
27  Network();
28 
34  ~Network();
35 
42  void makeDefaultInputs();
43 
51  void makeNetwork(vector<double>, int, int, int );
52 
60  void makeManuallyNetwork(vector<double>);
61 
69  vector<double> startProcess(vector<double>);
70  vector<Neuron> propagation(vector<double>);
71  void backPropagation();
72  void readjustsWeights();
73  void printNeuralNetwork();
74  void printVector(vector<double>);
75  void setExpectedOutputs(int,vector<double>);
76  int getSizeExpectedOutputs();
77  private:
78  vector < vector <double> > ExpectedOutputs;
79  //multimap<int, vector<Neuron> > myLayers;
80  //multimap<int, Matrix> myDefaultInputs;
81  //Matrix (*MY_DEFAULTS[10]) ( );
82 };
83 
84 #endif