# mlp-mnist is an implementation of a multi-layer neural network.
#
-# Copyright (c) 2008 Idiap Research Institute, http://www.idiap.ch/
-# Written by Francois Fleuret <francois.fleuret@idiap.ch>
+# Copyright (c) 2006 École Polytechnique Fédérale de Lausanne,
+# http://www.epfl.ch
+#
+# Written by Francois Fleuret <francois@fleuret.org>
#
# This file is part of mlp-mnist.
#
make -k ann
-if [[ $1 == "--download-mnist" ]]; then
- for f in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte; do
- if [[ ! -f "./$f" ]]; then
- echo "Could not find $f, downloading it."
- wget http://yann.lecun.com/exdb/mnist/$f.gz
- gunzip $f.gz
- fi
- done
+if [[ $1 ]]; then
+
+ if [[ $1 == "--download-mnist" ]]; then
+ for f in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte; do
+ if [[ ! -f "./$f" ]]; then
+ echo "Could not find $f, downloading it."
+ wget http://yann.lecun.com/exdb/mnist/$f.gz
+ gunzip $f.gz
+ fi
+ done
+ else
+
+ echo "Unknown option $1"
+ exit 1
+
+ fi
fi
for f in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte; do