Neuronetz_V2/neuralNetwork.h
Efe Kaan Turhan a8fbf37709 Neuronetz_Fertig
Please enter the commit message for your changes. Lines starting
2025-11-25 19:52:51 +01:00

31 lines
728 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);
void clearModel(NeuralNetwork *model);
/* Das Original für die Galerie */
unsigned char *predict(const NeuralNetwork model, const GrayScaleImage images[], unsigned int numberOfImages);
/* --- WICHTIG: zweite predict funktion für live predicting! --- */
unsigned char *predictLive(const NeuralNetwork model, const GrayScaleImage image);
#endif