How many parameters in a deep CNN?
In this exercise, you will use Keras to calculate the total number of parameters along with the number of parameters in each layer of the network.
We have already provided code that builds a deep CNN for you.
Questo esercizio fa parte del corso
Image Modeling with Keras
Istruzioni dell'esercizio
Summarize the network, providing a count of the number of parameters.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
# CNN model
model = Sequential()
model.add(Conv2D(10, kernel_size=2, activation='relu',
input_shape=(28, 28, 1)))
model.add(Conv2D(10, kernel_size=2, activation='relu'))
model.add(Flatten())
model.add(Dense(3, activation='softmax'))
# Summarize the model
____