mirror of
https://github.com/augustin64/projet-tipe
synced 2025-01-24 07:36:24 +01:00
Update mnist utils
This commit is contained in:
parent
c8b369f862
commit
70e0ed08b7
@ -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);
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user