2022-04-01 15:18:48 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
#include "../src/mnist/neural_network.c"
|
|
|
|
#include "../src/mnist/neuron_io.c"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
printf("Création du réseau\n");
|
|
|
|
|
2022-04-25 14:39:45 +02:00
|
|
|
Network* network_neuronal = malloc(sizeof(Network));
|
2022-04-01 15:18:48 +02:00
|
|
|
int tab[5] = {30, 25, 20, 15, 10};
|
2022-04-25 14:39:45 +02:00
|
|
|
network_creation(network_neuronal, tab, 5);
|
2022-04-01 15:18:48 +02:00
|
|
|
|
|
|
|
printf("OK\n");
|
|
|
|
printf("Initialisation du réseau\n");
|
|
|
|
|
2022-04-25 14:39:45 +02:00
|
|
|
network_initialisation(network_neuronal);
|
2022-04-01 15:18:48 +02:00
|
|
|
|
|
|
|
printf("OK\n");
|
|
|
|
printf("Enregistrement du réseau\n");
|
|
|
|
|
2022-04-25 14:39:45 +02:00
|
|
|
write_network(".test-cache/random_network.bin", network_neuronal);
|
2022-04-01 15:18:48 +02:00
|
|
|
|
|
|
|
printf("OK\n");
|
|
|
|
return 1;
|
|
|
|
}
|