July 2018
Intermediate to advanced
474 pages
13h 37m
English
This section walks through the steps to build a model to recognize handwritten images from MNIST.
xtrain = data.train.imagesytrain = np.asarray(data.train.labels)xtest = data.test.images ytest = np.asarray(data.test.labels)
xtrain = xtrain.reshape( xtrain.shape[0],28,28,1)xtest = xtest.reshape(xtest.shape[0],28,28,1)ytest= ytest.reshape(ytest.shape[0],10)ytrain = ytrain.reshape(ytrain.shape[0],10)
import kerasimport keras.backend as Kfrom keras.models ...
Read now
Unlock full access