Tensorflow application on the mnist data set
MULTI-LAYER PERCEPTRON USING THE MNINST DATASET A perceprtron is a single layer neural network. This tutorial deals with creating a multilayer neural network using the mnist dataset 1. Dataset ¶ We use mnist dataset that consist of images of hand-written digits. Each image size is 24 * 24 pixels = 784 pixels The data for each image is therefore a 24*24 array Each data-point in the image array represet a white space (0) or a value less than or equal to one. In [2]: import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data . read_data_sets ( "tmp/data" , one_hot = True ) # tmp/data is a temporary project data storage for our dataset # It gets created automatically Extracting tmp/data/train-images-idx3-ubyte.gz Extracting tmp/data/train-labels-idx1-ubyte.gz Extracting tmp/data/t10k-images-idx3-ubyte.gz Extrac...