This commit is contained in:
Anja Freudenreich
2026-09-17 14:46:11 +02:00
parent a6749f07d1
commit 447e77a7bf
35 changed files with 15846 additions and 0 deletions
+26
View File
@@ -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