From 5cb7068babd297c6444b10ff23ef6a2a73066ffe Mon Sep 17 00:00:00 2001 From: augustin64 Date: Thu, 14 Apr 2022 12:17:08 +0200 Subject: [PATCH] Fix indice --- src/mnist/neural_network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mnist/neural_network.c b/src/mnist/neural_network.c index 5a0ff73..626ca69 100644 --- a/src/mnist/neural_network.c +++ b/src/mnist/neural_network.c @@ -87,7 +87,7 @@ void forward_propagation(Reseau* reseau) { couche->neurones[j]->z = couche->neurones[j]->biais; for (int k=0; k < pre_couche->nb_neurones; k++) { - couche->neurones[j]->z += pre_couche->neurones[k]->z * pre_couche->neurones[k]->poids_sortants[i]; // CHECK: ->poids_sortants[k] plutôt que i + couche->neurones[j]->z += pre_couche->neurones[k]->z * pre_couche->neurones[k]->poids_sortants[j]; } if (i < reseau->nb_couches-1) { // Pour toutes les couches sauf la dernière on utilise la fonction ReLU (0 si z<0, z sinon)