How to run MNIST CNN example for a newbie?

19 views
Skip to first unread message

Tim Molter

unread,
Oct 19, 2017, 5:14:24 AM10/19/17
to torch7
Hello,

I'm interested in learning Torch7, and I'd like to be able to install Torch on MacOS and quickly run a CNN MNIST example. I found one lua script that looks promising here: https://github.com/nicholas-leonard/dp/blob/master/examples/convolutionneuralnetwork.lua

How do I run i though?

In TensorFlow it was as simple as:


brew install git
brew install python3
pip3 install
--upgrade tensorflow
pip3 install
--upgrade matplotlib
cd
~/MNIST
git clone g...@github.com:martin-gorner/
tensorflow-mnist-tutorial.git
cd tensorflow
-mnist-tutorial
python3 mnist_3
.1_convolutional_bigger_dropout.py


How would I do this in Torch? I googled for about an hour and didn't find any clear examples or tutorials. 
Reply all
Reply to author
Forward
0 new messages