Simple python object that can read the original MNIST files into numpy arrays. Reader object initialised with the directory that contains the MNIST files, as found here http://yann.lecun.com/exdb/mnist/. E.g './data'. Reader.read_data() then takes boolean arguments normalize and vectorize_labels which determine if the pixels of images are normalised to between 0 and 1 and if the labels are returned as single numbers or as vectors of length 10 with a 1 in the corresponding digit position. It returns a tuple X_train, y_train, X_test, y_test.
-
Notifications
You must be signed in to change notification settings - Fork 0
Simple python object that can read the original MNIST files into numpy arrays
License
IsaacSST/MNIST-reader
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple python object that can read the original MNIST files into numpy arrays
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published