December 2018
Intermediate to advanced
764 pages
18h 18m
English
Let us repeat the LeNet CNN model building and training for CIFAR10 data in Keras. We keep the architecture same as previous examples in order to explain the concepts easily. In Keras, the dropout layer is added as follows:
model.add(Dropout(0.2))
The complete code in Keras for CIFAR10 CNN model is provided in the notebook ch-09b_CNN_CIFAR10_TF_and_Keras.
On running the model we get the following model description:
_________________________________________________________________ Layer (type) Output Shape Param # ================================================================= conv2d_1 (Conv2D) (None, 32, 32, 32) 1568 _________________________________________________________________ max_pooling2d_1 (MaxPooling2 ...
Read now
Unlock full access