From 70e0ed08b7b220390a76433ad010e3bf7d091540 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Tue, 8 Nov 2022 19:56:58 +0100 Subject: [PATCH] Update mnist utils --- src/mnist/utils.c | 2 +- test/mnist_utils.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mnist/utils.c b/src/mnist/utils.c index 8e61851..a5cf8e9 100644 --- a/src/mnist/utils.c +++ b/src/mnist/utils.c @@ -78,7 +78,7 @@ void count_labels(char* filename) { } for (int i=0; i < 10; i++) { - printf("Nombre de %d: %x\n", i, tab[i]); + printf("Nombre de %d: %u\n", i, tab[i]); } free(labels); } diff --git a/test/mnist_utils.sh b/test/mnist_utils.sh index fed2f21..5a801b2 100755 --- a/test/mnist_utils.sh +++ b/test/mnist_utils.sh @@ -3,14 +3,15 @@ set -e OUT="build" -[[ -f "$OUT/mnist-utils" ]] || make $OUT/mnist-utils +make $OUT/mnist-utils echo "Compte des labels" -"$OUT/mnist-utils" count-labels -l data/mnist/t10k-labels-idx1-ubyte > /dev/null +"$OUT/mnist-utils" count-labels -l data/mnist/t10k-labels-idx1-ubyte echo "OK" echo "Création du réseau" -"$OUT/mnist-utils" creer-reseau -n 3 -o .test-cache/reseau.bin > /dev/null +mkdir -p .test-cache +"$OUT/mnist-utils" creer-reseau -n 3 -o .test-cache/reseau.bin echo "OK" echo "Affichage poids"