From 15b94c8e039ca4e78c4472322fea571ae683f688 Mon Sep 17 00:00:00 2001 From: Grant Date: Wed, 29 Jul 2015 11:43:00 -0400 Subject: [PATCH] Updating mnist filenames to match downloaded conventions This will prevent library users from having to figure out the filename conventions used here, as the updated files in this pull request match those downloaded from the mnist website after unzipping them. --- main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 727cbb4..0b882f0 100644 --- a/main.js +++ b/main.js @@ -78,8 +78,8 @@ function mnist() { log('parsing MNIST data ...'); - var data = fs.readFileSync('./mnist/train-images.idx3-ubyte'), - labels = fs.readFileSync('./mnist/train-labels.idx1-ubyte'), + var data = fs.readFileSync('./mnist/train-images-idx3-ubyte'), + labels = fs.readFileSync('./mnist/train-labels-idx1-ubyte'), training = [], testing = [], pixels = [], @@ -110,8 +110,8 @@ pixels = []; } - data = fs.readFileSync('./mnist/t10k-images-2.idx3-ubyte'); - labels = fs.readFileSync('./mnist/t10k-labels.idx1-ubyte'); + data = fs.readFileSync('./mnist/t10k-images-idx3-ubyte'); + labels = fs.readFileSync('./mnist/t10k-labels-idx1-ubyte'); for(image = 0; image < config.testing_set; image++) { for(y = 4; y < config.image_size + 4; y++) @@ -197,4 +197,4 @@ } }; } -})(console.log); \ No newline at end of file +})(console.log);