Skip to content

Commit

Permalink
Updating mnist filenames to match downloaded conventions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Grant committed Jul 29, 2015
1 parent 8c3d82b commit 15b94c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [],
Expand Down Expand Up @@ -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++)
Expand Down Expand Up @@ -197,4 +197,4 @@
}
};
}
})(console.log);
})(console.log);

0 comments on commit 15b94c8

Please sign in to comment.