diff --git a/data/t10k-images-idx3-ubyte b/data/mnist/t10k-images-idx3-ubyte similarity index 100% rename from data/t10k-images-idx3-ubyte rename to data/mnist/t10k-images-idx3-ubyte diff --git a/data/t10k-labels-idx1-ubyte b/data/mnist/t10k-labels-idx1-ubyte similarity index 100% rename from data/t10k-labels-idx1-ubyte rename to data/mnist/t10k-labels-idx1-ubyte diff --git a/data/train-images-idx3-ubyte b/data/mnist/train-images-idx3-ubyte similarity index 100% rename from data/train-images-idx3-ubyte rename to data/mnist/train-images-idx3-ubyte diff --git a/data/train-labels-idx1-ubyte b/data/mnist/train-labels-idx1-ubyte similarity index 100% rename from data/train-labels-idx1-ubyte rename to data/mnist/train-labels-idx1-ubyte diff --git a/make.sh b/make.sh index 12d1c9e..92a243a 100755 --- a/make.sh +++ b/make.sh @@ -12,11 +12,11 @@ if [[ $1 == "preview" ]]; then exit elif [[ $2 == "train" ]]; then [[ -f out/preview_mnist ]] || $0 preview build - out/preview_mnist data/train-images-idx3-ubyte data/train-labels-idx1-ubyte + out/preview_mnist data/mnist/train-images-idx3-ubyte data/mnist/train-labels-idx1-ubyte exit elif [[ $2 == "t10k" ]]; then [[ -f out/preview_mnist ]] || $0 preview build - out/preview_mnist data/t10k-images-idx3-ubyte data/t10k-labels-idx1-ubyte + out/preview_mnist data/mnist/t10k-images-idx3-ubyte data/mnist/t10k-labels-idx1-ubyte exit fi fi diff --git a/test/mnist.c b/test/mnist.c index cfe533b..58cb51e 100644 --- a/test/mnist.c +++ b/test/mnist.c @@ -23,8 +23,8 @@ void test_lecture(int nb_images, int width, int height, int*** images, unsigned } int main() { - char* image_file = "data/t10k-images-idx3-ubyte"; - char* labels_file = "data/t10k-labels-idx1-ubyte"; + char* image_file = "data/mnist/t10k-images-idx3-ubyte"; + char* labels_file = "data/mnist/t10k-labels-idx1-ubyte"; printf("Chargement des paramètres\n"); int* parameters = read_mnist_images_parameters(image_file); diff --git a/test/neural_network.c b/test/neural_network.c index 0ece65d..93725bf 100644 --- a/test/neural_network.c +++ b/test/neural_network.c @@ -21,7 +21,7 @@ int main() { printf("OK\n"); printf("Enregistrement du réseau\n"); - ecrire_reseau("/tmp/reseau_test.bin", reseau_neuronal); + ecrire_reseau(".test-cache/random_reseau.bin", reseau_neuronal); printf("OK\n"); return 1;