generated from freudenreichan/info2Praktikum-NeuronalesNetz
Initial commit
This commit is contained in:
commit
cd1b37e381
37 files changed
+15907
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#ifndef NEURALNETWORK_H
|
||||
#define NEURALNETWORK_H
|
||||
|
||||
#include "imageInput.h"
|
||||
#include "matrix.h"
|
||||
|
||||
typedef void (*ActivationFunctionType)(Matrix *X);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Matrix weights;
|
||||
Matrix biases;
|
||||
ActivationFunctionType activation;
|
||||
} Layer;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Layer *layers;
|
||||
unsigned int numberOfLayers;
|
||||
} NeuralNetwork;
|
||||
|
||||
NeuralNetwork loadModel(const char *path);
|
||||
unsigned char *predict(const NeuralNetwork model, const GrayScaleImage images[], unsigned int numberOfImages);
|
||||
void clearModel(NeuralNetwork *model);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user