tipe/src/mnist/utils.c

23 lines
588 B
C
Raw Normal View History

2022-04-19 13:55:08 +02:00
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <float.h>
#include "neural_network.c"
#include "neuron_io.c"
void print_biais(char* filename) {
Reseau* reseau = lire_reseau(".cache/reseau.bin");
2022-04-19 16:26:28 +02:00
for (int i=1; i < reseau->nb_couches -1; i++) {
2022-04-19 13:55:08 +02:00
printf("Couche %d\n", i);
for (int j=0; j < reseau->couches[i]->nb_neurones; j++) {
printf("Couche %d\tNeurone %d\tBiais: %0.1f\n", i, j, reseau->couches[i]->neurones[j]->biais);
}
}
}
2022-04-19 16:26:28 +02:00
int main(int argc, char* argv[]) {
2022-04-19 13:55:08 +02:00
print_biais(".cache/reseau.bin");
return 1;
}