Anja Freudenreich 160cae39e4 adding content
2025-09-25 11:13:22 +02:00

27 lines
539 B
C

#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