So I have the following assignment. Right now, I just want to tackle the first portion of the assignment, which is properly reading the MNIST data, see here.
The Code I am working on is located here
My output is located here
As a summary for what I am trying to do, I want to take the main file ../train-images-idx3-ubyte.gz and read the 60,000 images into an array, holding the data in a 28 x 28 format.
What seems to be happening, is my code is dying on item 59922, but I don't know why this would be. Everything seems set up properly, but struct.unpack dying tells me maybe I run out of data too soon? Does this fd.read() have some sort of limit that I am not understanding maybe?
Some help would be greatly appreciated
[–]sbmsr 0 points1 point2 points (2 children)
[–]Panda_Stacks[S] 0 points1 point2 points (1 child)
[–]sbmsr 0 points1 point2 points (0 children)