Update mnist utils

This commit is contained in:
augustin64 2022-11-08 19:56:58 +01:00
parent c8b369f862
commit 70e0ed08b7
2 changed files with 5 additions and 4 deletions

View File

@ -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);
}

View File

@ -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"