Theano-Tutorials icon indicating copy to clipboard operation
Theano-Tutorials copied to clipboard

How to load mnist?

Open liuliuqiu opened this issue 10 years ago • 1 comments

In your logistic regression ,from load import mnist?

liuliuqiu avatar Aug 14 '16 13:08 liuliuqiu

Hi @liuliuqiu

You can load mnist by following the instructions in this website. https://pypi.python.org/pypi/python-mnist/0.3

After you follow the procedure in the above website to install the package, to get trX, trY, teX, teY as in NewMu's tutorials, use the following code.

from mnist import MNIST mndata = MNIST('/dir_with_mnist_data_files') trX,trY = mndata.load_training() teX,teY = mndata.load_testing()

Hope this helps.

kiran-mohan avatar Aug 18 '16 15:08 kiran-mohan