mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-24 07:36:24 +01:00
Update utils.c
This commit is contained in:
parent
e2e12ca78f
commit
af02b87345
@ -9,7 +9,7 @@
|
|||||||
void print_biais(char* filename) {
|
void print_biais(char* filename) {
|
||||||
Reseau* reseau = lire_reseau(".cache/reseau.bin");
|
Reseau* reseau = lire_reseau(".cache/reseau.bin");
|
||||||
|
|
||||||
for (int i=0; i < reseau->nb_couches; i++) {
|
for (int i=1; i < reseau->nb_couches -1; i++) {
|
||||||
printf("Couche %d\n", i);
|
printf("Couche %d\n", i);
|
||||||
for (int j=0; j < reseau->couches[i]->nb_neurones; j++) {
|
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);
|
printf("Couche %d\tNeurone %d\tBiais: %0.1f\n", i, j, reseau->couches[i]->neurones[j]->biais);
|
||||||
@ -17,7 +17,7 @@ void print_biais(char* filename) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, int* argv) {
|
int main(int argc, char* argv[]) {
|
||||||
print_biais(".cache/reseau.bin");
|
print_biais(".cache/reseau.bin");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user