lava.utils.dataloader

lava.utils.dataloader.mnist

digraph inheritance8577227394 { bgcolor=transparent; rankdir=TB; size=""; "MnistDataset" [URL="../lava/lava.utils.dataloader.html#lava.utils.dataloader.mnist.MnistDataset",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }
class lava.utils.dataloader.mnist.MnistDataset(data_path='/home/runner/.cache/pypoetry/virtualenvs/lava-docs-3AV8dzPR-py3.10/src/lava/src/lava/utils/dataloader/mnist.npy')

Bases: object

static decompress_convert_save(download_path='/home/runner/.cache/pypoetry/virtualenvs/lava-docs-3AV8dzPR-py3.10/src/lava/src/lava/utils/dataloader/temp', save_path='/home/runner/.cache/pypoetry/virtualenvs/lava-docs-3AV8dzPR-py3.10/src/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/runner/.cache/pypoetry/virtualenvs/lava-docs-3AV8dzPR-py3.10/src/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