July 2018
Intermediate to advanced
474 pages
13h 37m
English
In addition to retrieving the accuracy of the model we can also produce the shapes within each layer of the CNN modeling process by executing the following script:
model.summary()
The output of the model.summary() can be seen in the following screenshot:

We see that the output shape of the first layer (None, 24, 24, 32) was flattened out into a shape of (None, 18432) by multiplying 24 x 24 x 32 within the second layer. Additionally, we see our third and fourth layers have the shape that we assigned them using the Dense layer function
Read now
Unlock full access