Newmu / Theano-Tutorials

Bare bones introduction to machine learning from linear regression to convolutional neural networks using Theano.
MIT License
1.27k stars 439 forks source link

How to load mnist? #18

Open liuliuqiu opened 8 years ago

liuliuqiu commented 8 years ago

In your logistic regression ,from load import mnist?

kiran-mohan commented 8 years ago

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.