Renamed ann.c into mlp.c.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 9 Apr 2010 17:51:04 +0000 (19:51 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 9 Apr 2010 17:51:04 +0000 (19:51 +0200)
Makefile
doit.sh
mlp.cc [moved from ann.cc with 100% similarity]

index a13df7f..2fce6a7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,16 +27,16 @@ else
  CXXFLAGS = -Wall -ffast-math -fcaller-saves -finline-functions -funroll-all-loops -O3
 endif
 
-all: ann
+all: mlp
 
-ann: ann.o misc.o images.o neural.o
+mlp: mlp.o misc.o images.o neural.o
        $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
 
 Makefile.depend: *.h *.cc Makefile
        $(CC) -M *.cc > Makefile.depend
 
 clean:
-       \rm ann *.o Makefile.depend
+       \rm mlp *.o Makefile.depend
 
 archive:
        cd .. ; tar zcvf mlp-mnist.tgz mlp-mnist/{*.{cc,h,txt,sh},Makefile}
diff --git a/doit.sh b/doit.sh
index 4b4d324..60a8311 100755 (executable)
--- a/doit.sh
+++ b/doit.sh
@@ -21,7 +21,7 @@
 #  You should have received a copy of the GNU General Public License
 #  along with mlp-mnist.  If not, see <http://www.gnu.org/licenses/>.
 
-make -k ann
+make -k mlp
 
 if [[ $1 ]]; then
 
@@ -50,11 +50,13 @@ for f in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte
     fi
 done
 
-./ann --nb-training-examples 20000 --nb-validation-examples 20000 \
+./mlp \
+    --nb-training-examples 20000 --nb-validation-examples 20000 \
     --mlp-structure 784,200,10 \
     --data-files ./train-images-idx3-ubyte ./train-labels-idx1-ubyte \
     --save-mlp simple.mlp
 
-./ann --load-mlp simple.mlp \
+./mlp \
+    --load-mlp simple.mlp \
     --data-files ./t10k-images-idx3-ubyte ./t10k-labels-idx1-ubyte \
     --nb-test-examples 10000
diff --git a/ann.cc b/mlp.cc
similarity index 100%
rename from ann.cc
rename to mlp.cc