mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-24 15:36:25 +01:00
23 lines
582 B
C
23 lines
582 B
C
|
#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;
|
||
|
}
|