Import libraries (language dependency: python 2.7)
import tensorflow as tf
import numpy as np
from sklearn.datasets import fetch_mldata
from sklearn.model_selection import train_test_split
load data, prepare data
mnist = fetch_mldata('MNIST original', data_home='./')
print "MNIST data,...