Can you give an example how to use a Dropout layer?

They say ‘include at least one dropout layer to prevent overfitting’ in the assignment.

I have looked through the ungraded labs and do not see example of using one in them.

Can you give an example here please for this problem? does it go before or after the GlobalMaxPooling1D layer, for example?

thank you.

model{[
//somelayers
tf.keras.layers.Dropout(.2),
//somelayers
]}

@bluetail you can check Understanding Dropout (C2W1L07) to understand more about dropout, for example, you can see keras official documentation of Dropout layer.

and @jmsykes15 thank you for your meaningful reply.

Best Regards,
Rakib Hossain Rifat