16.03.2021 Views

Advanced Deep Learning with Keras

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 1

Listing 1.4.2 shows a summary of a CNN MNIST digit classifier:

_________________________________________________________________

Layer (type) Output Shape Param #

=================================================================

conv2d_1 (Conv2D) (None, 26, 26, 64) 640

_________________________________________________________________

max_pooling2d_1 (MaxPooling2 (None, 13, 13, 64) 0

_________________________________________________________________

conv2d_2 (Conv2D) (None, 11, 11, 64) 36928

_________________________________________________________________

max_pooling2d_2 (MaxPooling2 (None, 5, 5, 64) 0

_________________________________________________________________

conv2d_3 (Conv2D) (None, 3, 3, 64) 36928

_________________________________________________________________

flatten_1 (Flatten) (None, 576) 0

_________________________________________________________________

dropout_1 (Dropout) (None, 576) 0

_________________________________________________________________

dense_1 (Dense) (None, 10) 5770

_________________________________________________________________

activation_1 (Activation) (None, 10) 0

=================================================================

Total params: 80,266

Trainable params: 80,266

Non-trainable params: 0

[ 29 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!