init commit

This commit is contained in:
2024-11-12 17:41:10 +01:00
parent 1e4f1f955b
commit 20bc9108d3
146 changed files with 24465 additions and 0 deletions

25
backprop/inputCouche.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef __INPUTCOUCHE_H
#define __INPUTCOUCHE_H
#include <vector>
#include <string>
#include "couche.h"
#include "hiddenCouche.h"
#include "global.h"
using namespace std;
class InputCouche : public Couche{
private:
SynapseMatrix prevChange;
public:
InputCouche();
InputCouche(const unsigned int nbr,const Couche* next=NULL);
void activate(const std::vector<bool> &v) throw(std::string);
void setNextCouche(const HiddenCouche* c) throw(std::string);
void backPropagate(const std::vector<double> deltaHidden);
double getChange(const unsigned int i, const unsigned int j) const throw(const unsigned int,std::string);
void printMatrix();
InputCouche& operator=(const InputCouche& c);
};
#endif