December 2017
Intermediate to advanced
536 pages
14h 23m
English
import tensorflow as tfimport numpy as npfrom tensorflow.examples.tutorials.mnist import input_dataimport matplotlib.pyplot as pltimport math%matplotlib inline
mnist = input_data.read_data_sets("MNIST_data/")trX, trY, teX, teY = mnist.train.images, mnist.train.labels, mnist.test.images, mnist.test.labels
# Network Parametersh_in, w_in = 28, 28 # Image size height and widthk = 3 # Kernel sizep = 2 # pools = 2 # Strides in maxpoolfilters = {1:32,2:32,3:16} ...Read now
Unlock full access