Theano-Tutorials
Theano-Tutorials copied to clipboard
How to load mnist?
In your logistic regression ,from load import mnist?
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.