dl-workshop-2022

Adding Dropout() layers

model = models.Sequential()
model.add(layers.Conv2D(32, (3, 3), activation='relu', input_shape=(64, 64, 3)))
model.add(layers.MaxPooling2D((2, 2)))
# Try adding a dropout layer after a Conv2D layer
model.add(layers.Dropout(0.1))  # Added
model.add(layers.Conv2D(64, (3, 3), activation='relu'))
model.add(layers.MaxPooling2D((2, 2)))
# Try adding a dropout layer after a Conv2D layer
model.add(layers.Dropout(0.1))  # Added
model.add(layers.Conv2D(64, (3, 3), activation='relu'))
# Try adding a dropout layer after a Conv2D layer
model.add(layers.Dropout(0.1))  # Added