The code used in the course uses two Dense layers after the final max_pooling and flattening eg:
tf.keras.layers.MaxPooling2D(2,2),
tf.keras.layers.Flatten(),
tf.keras.layers.Dense(512, activation=‘relu’),
tf.keras.layers.Dense(1, activation=‘sigmoid’)
What is the purpose of the Dense layer with 512 nodes? I tried doubling the number of nodes here (to 1024) and dropping it altogether, and didn’t notice much change in the accuracy of the network predictions. This was in the assignment at the end of Week 1.
Thanks!