Use platform independent starter code.

This commit is contained in:
paulusja
2025-10-30 11:30:39 +01:00
parent ff67cfdff5
commit 9db85086ef
86 changed files with 2689 additions and 26293 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