Searching for tutorials and software about Deep Learning and Neural Nets? Be sure to look at my Resource Page!
Looking for Octave? Go to my Easy Octave on Mac page!

Friday, April 10, 2015

Warning: Andrea Burratin's code is seriously buggy.

Warning, I found a bunch of bugs when scanning through Andrea's code. The worst is a limited hard-coded number of training samples generated by the convert.cpp program. Of course this and other bugs are easy to fix, but after noting the bugs , I would consider his reported results valueless until confirmed.

Another interesting bug is the fact that the greyscale training data is not converted to floats as the neural net approach would require. It is in fact an incredible miracle of neural net power that by running the code I did get something like 60% correct recognition.

I really want to like Andrea's work, and his global code organisation. He is something I will never be, namely a fast and fluent C++ programmer, but as I look in detail at the code there are bugs and bad design patterns everywhere, even in the command-line parsing code. I guess we will leave any expectation of accuracy to the geriatric scientists like me, technology has progressed.

Look at  the size of the file below.

Edmunds-MBP:src edmundronald$ ls -l
total 127560
-rw-r--r--@ 1 edmundronald  staff       657 Apr  8 03:42 Makefile
-rw-r--r--@ 1 edmundronald  staff       537 Apr  8 03:42 Makefile.nodevil
-rwxr-xr-x  1 edmundronald  staff     46280 Apr  9 05:38 bulk-test
-rwxr-xr-x  1 edmundronald  staff     43352 Apr  8 04:31 convert
-rw-r--r--  1 edmundronald  staff       984 Apr  9 04:29 error_data.dat
-rw-r--r--  1 edmundronald  staff   8269708 Apr  9 04:29 network.nn
-rwxr-xr-x  1 edmundronald  staff     15912 Apr  8 14:02 own-test
drwxr-xr-x  7 edmundronald  staff       238 Apr  8 03:31 src
-rw-r--r--  1 edmundronald  staff   7840016 Jul 21  2000 t10k-images-idx3-ubyte
-rw-r--r--  1 edmundronald  staff     10008 Jul 21  2000 t10k-labels-idx1-ubyte
-rwxr-xr-x  1 edmundronald  staff     21148 Apr  9 04:36 test
-rwxr-xr-x  1 edmundronald  staff     68580 Apr  8 03:43 train
-rw-r--r--  1 edmundronald  staff  47040016 Jul 21  2000 train-images-idx3-ubyte
-rw-r--r--  1 edmundronald  staff     60008 Jul 21  2000 train-labels-idx1-ubyte
-rw-r--r--  1 edmundronald  staff   1860495 Apr  8 04:32

Edmunds-MBP:src edmundronald$ 


No comments:

Post a Comment

Hey, let me know what you think of my blog, and what material I should add!