mnist

MNIST dataset.

This module will download dataset from http://yann.lecun.com/exdb/mnist/ and parse training set and test set into paddle reader creators.

paddle.dataset.mnist.train()[source]

MNIST training set creator.

It returns a reader creator, each sample in the reader is image pixels in [-1, 1] and label in [0, 9].

Returns

Training reader creator

Return type

callable

paddle.dataset.mnist.test()[source]

MNIST test set creator.

It returns a reader creator, each sample in the reader is image pixels in [-1, 1] and label in [0, 9].

Returns

Test reader creator.

Return type

callable