This aritcle is a memo about MNIST For ML Beginners to Learn TensorFlow.
๐ฝ Download
You can download MNIST data as follows:
from tensorflow.examples.tutorials.mnist import input_data |
๐ฐ Dataset Types
- data_sets.train : 55000 images and labels, for primary training.
- data_sets.validation : 5000 images and labels, for iterative validation of training accuracy.
- data_sets.test : 10000 images and labels, for final testing of trained accuracy.
๐ค Data Point
- xs : a handwritten digit : 784(=28x28)
- ys : a corresponding label : mnist.train.labels (1 hot vectors)
- For example, 3 would be [0, 0, 0, 1, 0, 0, 0, 0, 0, 0]
๐ Softmax Regression
- First Step : We add up the evidence of our input being in certain classes
- Sencond Step: We convert that evidence into probabilities

import tensorflow as tf |
๐ Training
To implement cross-entropy:
# Backpropagation algorithm |
๐ Evaluation
correct_prediction = tf.equal(tf.argmax(y,1), tf.argmax(y_,1)) |
๐ป Output
$ python mnist_beginner.py |
๐ Special Thanks
๐ฝ Sample Code
๐ฏ Japanese Description for TensorFlow MNIST For ML Beginners
- http://qiita.com/uramonk/items/c207c948ccb6cd0a1346
- http://qiita.com/KojiOhki/items/ff6ae04d6cf02f1b6edf
๐ฅ Recommended VPS Service
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!