def get_mnist(withlabel=True, ndim=1, scale=1.0, dtype=numpy.float32, label_dtype=numpy.int32):
 train_raw = _retrieve_mnist_training()
 train = _preprocess_mnist(train_raw, withlabel, ndim, scale, dtype, label_dtype)
 test_raw = _retrieve_mnist_test()
 test = _preprocess_mnist(test_raw, withlabel, ndim, scale, dtype, label_dtype)
 return (train, test)

def get_mnist ( withlabel = True , ndim = 1 , scale = 1.0 , dtype = numpy . float32 , label_dtype = numpy . int32 ) : train_raw = _retrieve_mnist_training ( ) train = _preprocess_mnist ( train_raw , withlabel , ndim , scale , dtype , label_dtype ) test_raw = _retrieve_mnist_test ( ) test = _preprocess_mnist ( test_raw , withlabel , ndim , scale , dtype , label_dtype ) return ( train , test )
gets the mnist dataset .