lava.utils.dataloader

lava.utils.dataloader.mnist

Inheritance diagram of lava.utils.dataloader.mnist
class lava.utils.dataloader.mnist.MnistDataset(data_path='/home/pweidel/lava-nc/lava/src/lava/utils/dataloader/mnist.npy')

Bases: object

static decompress_convert_save(download_path='/home/pweidel/lava-nc/lava/src/lava/utils/dataloader/temp', save_path='/home/pweidel/lava-nc/lava/src/lava/utils/dataloader')

download_path (str): path of downloaded raw MNIST dataset in IDX format save_path (str): path at which processed npy file will be saved

After loading data = np.load(), data is a np.array of np.arrays. train_imgs = data[0][0]; shape = 60000 x 28 x 28 test_imgs = data[1][0]; shape = 10000 x 28 x 28 train_labels = data[0][1]; shape = 60000 x 1 test_labels = data[1][1]; shape = 10000 x 1

static download_mnist(path='/home/pweidel/lava-nc/lava/src/lava/utils/dataloader/temp')
files = ['train-images-idx3-ubyte.gz', 'train-labels-idx1-ubyte.gz', 't10k-images-idx3-ubyte.gz', 't10k-labels-idx1-ubyte.gz']
property images
property labels
mirrors = ['http://yann.lecun.com/exdb/mnist/', 'https://ossci-datasets.s3.amazonaws.com/mnist/', 'https://storage.googleapis.com/cvdf-datasets/mnist/']
property test_images
property test_labels
property train_images
property train_labels