tipe/test/mnist_neural_network.c

22 lines
534 B
C
Raw Normal View History

2022-04-01 15:18:48 +02:00
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
2022-09-30 15:44:28 +02:00
#include "../src/mnist/include/neural_network.h"
#include "../src/mnist/include/neuron_io.h"
2022-04-01 15:18:48 +02:00
int main() {
printf("Création du réseau\n");
2022-05-14 16:04:35 +02:00
Network* network = (Network*)malloc(sizeof(Network));
2022-04-01 15:18:48 +02:00
int tab[5] = {30, 25, 20, 15, 10};
2022-05-14 16:04:35 +02:00
network_creation(network, tab, 5);
2022-04-01 15:18:48 +02:00
printf("OK\n");
printf("Initialisation du réseau\n");
2022-05-14 16:04:35 +02:00
network_initialisation(network);
2022-04-01 15:18:48 +02:00
printf("OK\n");
2022-05-23 17:27:38 +02:00
deletion_of_network(network);
2022-05-14 16:04:35 +02:00
return 0;
2022-04-01 15:18:48 +02:00
}