tipe/src/mnist/utils.c

23 lines
582 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");
for (int i=0; i < reseau->nb_couches; i++) {
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);
}
}
}
int main(int argc, int* argv) {
print_biais(".cache/reseau.bin");
return 1;
}