Modern Deep Learning Design and Application Development by Andre Ye

Modern Deep Learning Design and Application Development by Andre Ye

Author:Andre Ye
Language: eng
Format: epub
ISBN: 9781484274132
Publisher: Apress


Listing 4-1Loading MNIST data

The MNIST dataset is notably a relatively simpler dataset, but for our benchmark model, we’ll build a deliberately redundant model with many more neurons and layers than are needed. This model (Listing 4-2) will contain ten hidden layers, with groups of two layers containing the same successively decreasing power of 2 (from 512 to 32), such that the number of neurons in the hidden layer goes 512-512-256-256-128-128-….# import layers

import keras.layers as L

# construct Sequential model

model = keras.Sequential()



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.