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.
Bu egzersiz
Image Modeling with Keras
kursunun bir parçasıdırEgzersiz talimatları
Summarize the network, providing a count of the number of parameters.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# 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
____