Skip to content

Commit

Permalink
Merge pull request #4 from GrantMStevens/master
Browse files Browse the repository at this point in the history
Updating mnist filenames to match downloaded conventions
  • Loading branch information
mateogianolio committed Jul 29, 2015
2 parents 8c3d82b + 15b94c8 commit 532d441
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 532d441

Please sign in to comment.